From a65f3404028bd734e5deb793aa6b765c638a34db Mon Sep 17 00:00:00 2001 From: JackJ30 Date: Sat, 14 Jun 2025 19:24:28 -0400 Subject: added checkgit script --- scripts/checkgit | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100755 scripts/checkgit (limited to 'scripts/checkgit') diff --git a/scripts/checkgit b/scripts/checkgit new file mode 100755 index 0000000..985433a --- /dev/null +++ b/scripts/checkgit @@ -0,0 +1,15 @@ +#!/bin/bash +# script checks all git repositories in subdirectory and displays their uncommitted changes + +echo -e "" +for dir in *; do + if [[ -d $dir ]] then + if [[ -d "$dir/.git" ]] then + gStatus=$(git -c color.ui=always -C $dir status -s) + if [[ -n $gStatus ]] then + echo $dir + echo -e "${gStatus}\n" + fi + fi + fi +done -- cgit v1.2.3