diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2014-02-06T12·51+0100 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2014-02-06T12·51+0100 |
commit | 20d059892819d2f06f4da8c1150c91e16df1f8cd (patch) | |
tree | 8bb6437edee89cce18ac353f057a32a350a38bac /tests/parallel.builder.sh | |
parent | 80b691316c4b15e69c63c285b8ed6cc72fb95e93 (diff) |
Drop dependency on ‘expr’
http://hydra.nixos.org/build/8715639 Not sure why this causes a failure now.
Diffstat (limited to 'tests/parallel.builder.sh')
-rw-r--r-- | tests/parallel.builder.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/parallel.builder.sh b/tests/parallel.builder.sh index 280eb1de8c41..d092bc5a6bd4 100644 --- a/tests/parallel.builder.sh +++ b/tests/parallel.builder.sh @@ -7,7 +7,7 @@ while ! ln -s x $shared.lock 2> /dev/null; do done test -f $shared.cur || echo 0 > $shared.cur test -f $shared.max || echo 0 > $shared.max -new=$(expr $(cat $shared.cur) + 1) +new=$(($(cat $shared.cur) + 1)) if test $new -gt $(cat $shared.max); then echo $new > $shared.max fi @@ -25,5 +25,5 @@ while ! ln -s x $shared.lock 2> /dev/null; do sleep 1 done test -f $shared.cur || echo 0 > $shared.cur -echo $(expr $(cat $shared.cur) - 1) > $shared.cur +echo $(($(cat $shared.cur) - 1)) > $shared.cur rm $shared.lock |