Add status.sh script for checking git modifications

This commit is contained in:
Jeremy Soller 2017-07-22 13:20:50 -06:00
parent 36f8f5b5f7
commit 1df0bc5443

20
status.sh Executable file
View File

@ -0,0 +1,20 @@
#!/usr/bin/env bash
set -e
source config.sh
if [ $# = 0 ]
then
recipes="$(ls -1 recipes)"
else
recipes="$@"
fi
for recipe in $recipes
do
echo -e "\e[1m$recipe\e[0m"
if [ -d "recipes/$recipe/source/.git" ]
then
git -C "recipes/$recipe/source" status -s
fi
done