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