aboutsummaryrefslogtreecommitdiff
path: root/home/list.sh
diff options
context:
space:
mode:
authorMitch Riedstra <mitch@riedstra.us>2020-09-13 16:40:54 -0400
committerMitch Riedstra <mitch@riedstra.us>2020-09-13 16:40:54 -0400
commit5debb8c4b7afeb531b1584595343390e4f07b113 (patch)
tree962a4046ad9436c0c5aa838ba075ea472fb1090e /home/list.sh
parent578b04e3f380cfd674cd545f6a4d673b4e046bf5 (diff)
downloadalpine-cgit-5debb8c4b7afeb531b1584595343390e4f07b113.tar.gz
alpine-cgit-5debb8c4b7afeb531b1584595343390e4f07b113.tar.xz
Do not run setup multiple times in a container's life. Also update scripts
Diffstat (limited to 'home/list.sh')
-rwxr-xr-xhome/list.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/home/list.sh b/home/list.sh
new file mode 100755
index 0000000..c1cba62
--- /dev/null
+++ b/home/list.sh
@@ -0,0 +1,9 @@
+#!/bin/sh
+#shellcheck disable=SC2038
+find . -type d -name branches \
+ | xargs -n1 dirname \
+ | while read -r repo ; do
+ if ! [ "$(basename "$repo")" = ".git" ] ; then
+ echo "$repo";
+ fi
+ done