From c1d7815a46205d5b61f31b246470aefd86ecb4d3 Mon Sep 17 00:00:00 2001 From: Tom Wilkie Date: Thu, 3 Nov 2016 18:50:09 +0000 Subject: [PATCH] Fix shfmt error --- integration/assert.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) mode change 100644 => 100755 integration/assert.sh diff --git a/integration/assert.sh b/integration/assert.sh old mode 100644 new mode 100755 index 5db17ab699..200b393bce --- a/integration/assert.sh +++ b/integration/assert.sh @@ -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