summaryrefslogtreecommitdiffstats
path: root/tests/aux
diff options
context:
space:
mode:
authorPatrick McDermott <patrick.mcdermott@libiquity.com>2019-08-01 19:17:56 (EDT)
committer Patrick McDermott <patrick.mcdermott@libiquity.com>2019-08-01 19:17:56 (EDT)
commite69adb324b6d6dd0ae6a6e498e5a6e25352189a1 (patch)
treec8d524ef7d6fb4b921371e2f95967813fb50fb24 /tests/aux
parent4fc35b2d92cfeb453b0f262a46ff50c9506d8ff9 (diff)
tests/aux/json.sh: Fix continue not in a loop
Fixes the following error with Bash: [...]/tests/aux/json.sh: line 144: continue: only meaningful in a `for', `while', or `until' loop json.sh: syntax: /given_cipher_suites/1 json.sh: syntax: / json.sh: syntax: / Oddly, Dash treats continue outside a loop as return, which is undefined behavior.
Diffstat (limited to 'tests/aux')
-rw-r--r--tests/aux/json.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/aux/json.sh b/tests/aux/json.sh
index 8f2cf9d..3c9783f 100644
--- a/tests/aux/json.sh
+++ b/tests/aux/json.sh
@@ -141,7 +141,7 @@ _json_char() {
_J_BASENAME="$(($_J_BASENAME + 1))"
_J_PATHNAME="$_J_DIRNAME$_J_S$_J_BASENAME"
_J_STATE="array-odd"
- continue;;
+ return;;
"]") exit;;
esac;;
esac