Fix passing options into repo builder

This commit is contained in:
Wildan M 2025-11-01 18:41:05 +07:00
parent 49a246c2b9
commit 45d6bf5007

13
repo.sh
View File

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