From 9ed7f32872bb2d3e35d59caf0cdc2c0d56d61a5e Mon Sep 17 00:00:00 2001 From: Patrick Van der Veken Date: Thu, 15 Mar 2018 15:59:24 +0100 Subject: [PATCH] Extra check on --flip-rc --- sources/bin/check_health.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/sources/bin/check_health.sh b/sources/bin/check_health.sh index 5f9a129..698af64 100644 --- a/sources/bin/check_health.sh +++ b/sources/bin/check_health.sh @@ -330,6 +330,11 @@ then print -u2 "ERROR: flipping RC (return code) is not allowed when executing multiple HC's" exit 1 fi + if (( ARG_ACTION != 4 )) + then + print -u2 "ERROR: you can only use '--flip-rc' in combination with '--run'" + exit 1 + fi fi # --check-host,--check/--disable/--enable/--run/--show/--archive,--hc if [[ -n "${ARG_HC}" ]] && (( ARG_ACTION == 0 ))