redox/update.sh
2017-07-26 20:35:07 -06:00

20 lines
243 B
Bash
Executable File

#!/usr/bin/env bash
set -e
source config.sh
if [ $# = 0 ]
then
recipes="$(ls -1 recipes)"
else
recipes="$@"
fi
for recipe in $recipes
do
if [ -d "recipes/$recipe/source" ]
then
./cook.sh "$recipe" update
fi
done