aboutsummaryrefslogtreecommitdiff
path: root/home
diff options
context:
space:
mode:
Diffstat (limited to 'home')
-rwxr-xr-xhome/list.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/home/list.sh b/home/list.sh
index c1cba62..b3b8bd9 100755
--- a/home/list.sh
+++ b/home/list.sh
@@ -1,9 +1,10 @@
#!/bin/sh
#shellcheck disable=SC2038
-find . -type d -name branches \
+find . -type f -name HEAD \
| xargs -n1 dirname \
| while read -r repo ; do
if ! [ "$(basename "$repo")" = ".git" ] ; then
echo "$repo";
fi
done
+