redox/fetch.sh
bjorn3 87699a364e Only accept recipe name in shell scripts
Rather than recipe path.
2025-09-02 20:58:11 +02:00

29 lines
430 B
Bash
Executable File

#!/usr/bin/env bash
set -e
source config.sh
recipes=""
for arg in "${@:1}"
do
if [ "$arg" == "--nonstop" ]
then
set +e
elif [ "$arg" == "--offline" ]
then
export COOKBOOK_OFFLINE="1"
else
recipes+=" $arg"
fi
done
if [ "$recipes" == "" ]
then
recipes="$(target/release/list_recipes)"
fi
for recipe_name in $recipes
do
target/release/cook --fetch-only "$recipe_name"
done