From 1df0bc544357bfadf66502d87ddff4a3bd709c25 Mon Sep 17 00:00:00 2001 From: Jeremy Soller <jackpot51@gmail.com> Date: Sat, 22 Jul 2017 13:20:50 -0600 Subject: [PATCH] Add status.sh script for checking git modifications --- status.sh | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100755 status.sh diff --git a/status.sh b/status.sh new file mode 100755 index 000000000..e3ca9fd70 --- /dev/null +++ b/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 -- GitLab