Skip to content
This repository has been archived by the owner on Apr 20, 2021. It is now read-only.

Commit

Permalink
Fix shfmt error
Browse files Browse the repository at this point in the history
  • Loading branch information
tomwilkie committed Nov 3, 2016
1 parent cb39746 commit c1d7815
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion integration/assert.sh
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,8 @@ assert_end() {
# ${tests_time:0:${#tests_time}-9} - seconds
# ${tests_time:${#tests_time}-9:3} - milliseconds
if [[ -z "$INVARIANT" ]]; then
report_time=" in ${tests_time:0:${#tests_time}-9}.${tests_time:${#tests_time}-9:3}s"
idx=$((${#tests_time} - 9))
report_time=" in ${tests_time:0:${idx}}.${tests_time:${idx}:3}s"
else
report_time=
fi
Expand Down

0 comments on commit c1d7815

Please sign in to comment.