diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2014-07-21 08:45:08 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2014-07-21 08:45:08 +0200 |
commit | 4662e4847402be59197d5ac123cdabb1c760c8a7 (patch) | |
tree | a098585c9a777d2596173f38e4990d49457b6ecd /git/stat.sh | |
parent | 18193c9635a5f2e926b4faf6d153e42ee7b367f8 (diff) |
Add helper git scripts4.0.0
Diffstat (limited to 'git/stat.sh')
-rwxr-xr-x | git/stat.sh | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/git/stat.sh b/git/stat.sh new file mode 100755 index 0000000..5b9ea45 --- /dev/null +++ b/git/stat.sh @@ -0,0 +1,21 @@ +#! /bin/sh + +# Assume this script never run via PATH. +# +self=`realpath $0` +. `dirname $self`/modules + +wd=`pwd` + +for i in $modules; do + echo "stat $i" 1>&2 + cd $i + git status + + if [ $? -ne 0 ]; then + echo "stat FAILED" 1>&2 + exit 1 + fi + + cd $wd +done |