redox/repo.sh
2025-11-01 19:21:57 +07:00

26 lines
414 B
Bash
Executable File

#!/usr/bin/env bash
set -e
source `dirname "$0"`/config.sh
APPSTREAM="0"
COOK_OPT=""
recipes=""
for arg in "${@:1}"
do
if [[ "$arg" == "--appstream" ]]
then
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