diff --git a/common.d/functions.sh b/common.d/functions.sh index 196cc6f..166d4b2 100644 --- a/common.d/functions.sh +++ b/common.d/functions.sh @@ -75,16 +75,16 @@ arguments() { case "$(echo ${opt} | tr '[:upper:]' '[:lower:]')" in -c | --cleanup) - cleanup - break 2;; + cleanup + exit $? ;; -r | --cleanraw) cleanraw - break 2;; + exit $? ;; -h | -help | --help) - usage - break 2;; + usage + exit $? ;; *) export LNIBUILD="$opt"