Skip to content

Commit a441406

Browse files
committed
check-branch: use expr instead of let
This avoids problems with dash on Ubuntu.
1 parent f245a5f commit a441406

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

check-branch.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ do
2020
start=$(date +%s)
2121
mvn clean verify > "$filename" 2>&1 && result=SUCCESS || result=FAILURE
2222
end=$(date +%s)
23-
let time="end-start"
23+
time=$(expr "$end" - "$start")
2424
echo "$prefix $commit $result $time"
25-
let count="count+1"
25+
count=$(expr "$count" + 1)
2626
done
2727

2828
git checkout "$branch" > /dev/null 2>&1

0 commit comments

Comments
 (0)