diff options
author | Andrei Pavel <andrei@isc.org> | 2021-02-07 10:30:55 +0100 |
---|---|---|
committer | Andrei Pavel <andrei@isc.org> | 2021-06-22 10:48:26 +0200 |
commit | a5d5eb3d867301d35c996d5448254f83c393b05e (patch) | |
tree | 596a01dac6a361405675dbfe21a89582bbb30884 /src/lib/asiolink/tests | |
parent | [#1119] msg_type_str is now deferred until throw (diff) | |
download | kea-a5d5eb3d867301d35c996d5448254f83c393b05e.tar.xz kea-a5d5eb3d867301d35c996d5448254f83c393b05e.zip |
[#1653] friendly errors, not unbound variable
Diffstat (limited to 'src/lib/asiolink/tests')
-rw-r--r-- | src/lib/asiolink/tests/process_spawn_app.sh.in | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/lib/asiolink/tests/process_spawn_app.sh.in b/src/lib/asiolink/tests/process_spawn_app.sh.in index e3d525c115..eab7310711 100644 --- a/src/lib/asiolink/tests/process_spawn_app.sh.in +++ b/src/lib/asiolink/tests/process_spawn_app.sh.in @@ -39,7 +39,7 @@ do ;; -e) shift - exit_code=${1} + exit_code=${1-} ;; -s) shift @@ -59,7 +59,11 @@ do exit 123 ;; esac - shift + # We've shifted in the loop so we may have run out of parameters in the + # meantime. Check again. + if test "${#}" -gt 0; then + shift + fi done # The exit code of 32 is returned when no args specified or |