Skip to content

Commit

Permalink
Add status.sh script for checking git modifications
Browse files Browse the repository at this point in the history
  • Loading branch information
jackpot51 committed Jul 22, 2017
1 parent 36f8f5b commit 1df0bc5
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions status.sh
@@ -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

0 comments on commit 1df0bc5

Please sign in to comment.