From e69adb324b6d6dd0ae6a6e498e5a6e25352189a1 Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Thu, 01 Aug 2019 19:17:56 -0400 Subject: 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. --- (limited to 'tests') 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 -- cgit v0.9.1