feature(user) Add legacy user scripts
[BK-2020-03.git] / user / bkgit-status
diff --git a/user/bkgit-status b/user/bkgit-status
new file mode 100755 (executable)
index 0000000..5ec774e
--- /dev/null
@@ -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