commit | 98e19ae04862aed915d285952fe17aa652585bb4 | [log] [tgz] |
---|---|---|
author | setrofim <setrofim@gmail.com> | Thu Oct 05 16:55:07 2017 +0100 |
committer | GitHub <noreply@github.com> | Thu Oct 05 16:55:07 2017 +0100 |
tree | e0086c69be238ba5ca07df806ca5a422171ee5f9 | |
parent | d1e83b53a32d75848712c2c5aa1fd57b888db94e [diff] | |
parent | 3e3f964e43d6fec8fe0db536a9054567239547c7 [diff] |
Merge pull request #183 from setrofim/master shuilt: re-introduce speedup
diff --git a/devlib/bin/scripts/shutils.in b/devlib/bin/scripts/shutils.in index 007d0a5..49d7407 100755 --- a/devlib/bin/scripts/shutils.in +++ b/devlib/bin/scripts/shutils.in
@@ -223,7 +223,10 @@ PATHS=$($BUSYBOX find $BASEPATH -follow -maxdepth $MAXDEPTH) i=0 for path in $PATHS; do - i=$(expr $i + 1) + i=$(expr $i + 1) + if [ $i -gt 1 ]; then + break; + fi done if [ $i -gt 1 ]; then $BUSYBOX grep -s '' $PATHS