Extra check on --flip-rc

This commit is contained in:
Patrick Van der Veken 2018-03-15 15:59:24 +01:00
parent 3f8981a243
commit 9ed7f32872

View File

@ -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 ))