From 45d6bf5007f96aa731ce540bc98814562fae8624 Mon Sep 17 00:00:00 2001 From: Wildan M Date: Sat, 1 Nov 2025 18:41:05 +0700 Subject: [PATCH] Fix passing options into repo builder --- repo.sh | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/repo.sh b/repo.sh index 0a95ac89a..15a81cece 100755 --- a/repo.sh +++ b/repo.sh @@ -8,18 +8,15 @@ COOK_OPT="" recipes="" for arg in "${@:1}" do - if [ "$arg" == "--appstream" ] + if [[ "$arg" == "--appstream" ]] then APPSTREAM="1" - elif [ "$arg" == "--with-package-deps" ] - then - COOK_OPT+=" --with-package-deps" - elif [ "$arg" == "--nonstop" ] - then - COOK_OPT+=" --nonstop" - elif [ "$arg" == "--offline" ] + elif [[ "$arg" == "--offline" ]] then export COOKBOOK_OFFLINE=true + elif [[ $arg == "--*" ]] + then + COOK_OPT+=" ${arg}" else recipes+=" $arg" fi