diff options
| author | JackJ30 <jackqjamison@gmail.com> | 2025-06-14 19:24:28 -0400 |
|---|---|---|
| committer | JackJ30 <jackqjamison@gmail.com> | 2025-06-14 19:24:28 -0400 |
| commit | a65f3404028bd734e5deb793aa6b765c638a34db (patch) | |
| tree | ea607195460f5a3e8ae13cc79226723be3e3846e | |
| parent | f27b7ae32b41da18de2d31d6e5f971883a6bcbac (diff) | |
added checkgit script
| -rwxr-xr-x | scripts/checkgit | 15 |
1 files changed, 15 insertions, 0 deletions
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 |
