fetch.sh 183 Bytes
Newer Older
Jeremy Soller's avatar
Jeremy Soller committed
1 2
#!/usr/bin/env bash
set -e
3 4 5 6 7 8 9 10 11 12 13 14 15 16

source config.sh

if [ $# = 0 ]
then
    recipes="$(ls -1 recipes)"
else
    recipes="$@"
fi

for recipe in $recipes
do
    ./cook.sh "$recipe" fetch
done