X-Git-Url: https://zdv2.bktei.com/gitweb/BK-2020-03.git/blobdiff_plain/17d7b80328e653a7d65c4aac24c4f8173409c321..0d22dfcdb7eab1975d56ed36967885707470c828:/user/bkgit-status diff --git a/user/bkgit-status b/user/bkgit-status new file mode 100755 index 0000000..5ec774e --- /dev/null +++ b/user/bkgit-status @@ -0,0 +1,24 @@ +#!/bin/bash + +# Date: 2020-01-02T03:21Z + +# Description: A bash script to perform the `git-status` command on +#all subdirectories within the working directory. + +# Source: https://gist.github.com/mzabriskie/6631607 + +#for d in ./*/ ; do (cd "$d" && echo "========================" && pwd && git status); done + +for d in ./*/ ; do + ( + cd "$d" + if [ -d ./.git ]; + then + #echo "========================" + pwd + git status -s + else + echo "ERR:No .git dir: "$(pwd) + fi + ); +done