From 910ce30ea9fb08db7b7e137a9245dda6806680a6 Mon Sep 17 00:00:00 2001 From: timoxa0 Date: Sat, 2 Nov 2024 22:36:29 +0500 Subject: [PATCH] functions: Fix args parser --- common.d/functions.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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"