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

21 lines
366 B
Bash
Executable File

#!/usr/bin/env bash
set -e
source config.sh
if [ $# = 0 ]
then
recipes="$(target/release/list_recipes --short)"
else
recipes="$@"
fi
for recipe_name in $recipes
do
recipe_path=`target/release/find_recipe $recipe_name`
echo -e "\033[01;38;5;215mcook - unfetch $recipe_name\033[0m"
rm -rfv "$recipe_path"/source "$recipe_path"/source.tar
done