From edbabe54bc1e52cec4841a6c9b2d643807d39c7b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mislav=20Marohni=C4=87?= Date: Tue, 29 Oct 2013 02:23:38 +0100 Subject: [PATCH] Safely increment in a way that it works on Linux Otherwise the CI is broken but still exits with 0 status: https://travis-ci.org/sstephenson/bats/builds/13173769 --- libexec/bats-exec-test | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libexec/bats-exec-test b/libexec/bats-exec-test index bbbd411..4b85b44 100755 --- a/libexec/bats-exec-test +++ b/libexec/bats-exec-test @@ -97,7 +97,7 @@ bats_capture_stack_trace() { if [[ "$frame" = *"$test_pattern" ]]; then break else - ((index++)) + index=$((index+1)) fi done fi