redox/repo.sh
2025-11-01 14:21:19 -06:00

25 lines
407 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 == "--*" ]]
then
COOK_OPT+=" ${arg}"
else
recipes+=" $arg"
fi
done
repo cook $COOK_OPT $recipes