From 4f35ffc90b890c8f204204e4256892eec9e10b7f Mon Sep 17 00:00:00 2001 From: Andrew Date: Sun, 24 Mar 2024 18:38:40 +0000 Subject: [PATCH] add repos_checker.sh --- repos_checker.sh | 4 ++++ 1 file changed, 4 insertions(+) create mode 100755 repos_checker.sh diff --git a/repos_checker.sh b/repos_checker.sh new file mode 100755 index 0000000..9be8ce1 --- /dev/null +++ b/repos_checker.sh @@ -0,0 +1,4 @@ +#!/bin/sh +# script to find all the git repositories in the current directory (& sub-directories) and display their git statuses + +find . -name ".git" -type d -not -path "./.cache/*" -not -path "./.local/*" -exec sh -c '(cd {}/../; pwd; git status)' \; 