status.sh 370 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14
#!/usr/bin/env bash
set -e

source config.sh

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

for recipe in $recipes
do
Jeremy Soller's avatar
Jeremy Soller committed
15
    if [ -d "recipes/$recipe/source" ]
16
    then
Jeremy Soller's avatar
Jeremy Soller committed
17 18 19 20 21 22
        status="$(COOK_QUIET=1 ./cook.sh "$recipe" status)"

        if [ -n "$status" ]
        then
            echo -e "\e[1m$recipe\e[0m\n$status"
        fi
23 24
    fi
done