Skip to content
Snippets Groups Projects
fetch.sh 376 B
Newer Older
Jeremy Soller's avatar
Jeremy Soller committed
#!/usr/bin/env bash
set -e
    recipes="$(target/release/list_recipes)"
else
    recipes="$@"
fi

for recipe in $recipes
do
    recipe_path=`target/release/find_recipe $recipe`
    if [ -e "$recipe_path/recipe.toml" ]
    then
        target/release/cook --fetch-only "$recipe"
        continue
    fi

    ./cook.sh "$recipe" fetch
done