Skip to content

Commit

Permalink
travis.sh: fix arithmetic expressions
Browse files Browse the repository at this point in the history
Inside arithmetic expressions "$" in "$var" is not needed as
pointed out by shellcheck.
  • Loading branch information
bircoph committed Apr 25, 2020
1 parent 721cdfc commit 7d2df70
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .travis.sh
Expand Up @@ -49,7 +49,7 @@ run_example() {

export CLSYNC_PIDFILE="/tmp/clsync-example-$MODE.$$.${run_example_counter}.pid"

run_example_counter=$(( $run_example_counter + 1 ))
run_example_counter=$(( run_example_counter + 1 ))

rm -rf "examples/testdir"/*/*
mkdir -p "examples/testdir/to" "examples/testdir/from"
Expand All @@ -75,7 +75,7 @@ run_example() {
break
fi
sleep 1
i=$(( $i + 1 ))
i=$(( i + 1 ))
done
if [ "$i" -gt "$TIMEOUT_SYNC" ]; then
run_example_cleanup_failure "$MODE" "timed out on initial syncing"
Expand All @@ -96,7 +96,7 @@ run_example() {
return
fi
sleep 1
i=$(( $i + 1 ))
i=$(( i + 1 ))
done
run_example_cleanup_failure "$MODE" "no successful sync"
}
Expand Down

0 comments on commit 7d2df70

Please sign in to comment.