redox/repo.sh
2025-11-08 16:08:59 +07:00

28 lines
490 B
Bash
Executable File

#!/usr/bin/env bash
set -e
source `dirname "$0"`/config.sh
COOK_OPT=""
recipes=""
for arg in "${@:1}"
do
if [[ "$arg" == "--appstream" ]]
then
export APPSTREAM="1"
elif [[ "$arg" == "--offline" ]]
then
export COOKBOOK_OFFLINE=true
elif [[ "$arg" == "--nonstop" ]]
then
export COOKBOOK_NONSTOP=true
elif [[ $arg == "--*" ]]
then
COOK_OPT+=" ${arg}"
else
recipes+=" $arg"
fi
done
repo cook $COOK_OPT $recipes