summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorParabola git <git@parabola.nu>2021-03-04 08:00:02 +0000
committerParabola git <git@parabola.nu>2021-03-04 08:00:02 +0000
commit743468fa0bd638d57feb92ba701aaac99b58b164 (patch)
treee40f9abcc3ebc94c523a563be7ed255e8fd25f55
parent86b6f3c42d6742bebd16ff1b57b855047d6be515 (diff)
Update from cron
-rwxr-xr-xgit-shell-commands/ls-repos13
1 files changed, 13 insertions, 0 deletions
diff --git a/git-shell-commands/ls-repos b/git-shell-commands/ls-repos
new file mode 100755
index 0000000..d6b4138
--- /dev/null
+++ b/git-shell-commands/ls-repos
@@ -0,0 +1,13 @@
+#!/bin/bash
+# * ls-repos
+# List repos and URLs
+# Example: ls-repos
+
+readonly URL=https://git.parabola.nu/
+
+
+set -e
+
+
+#find . -type f -name 'HEAD' | sed "s|\./\(.*\)/HEAD|${URL}\1|"
+find . -type d -name '*.git' | sed "s|\./\(.*\)|${URL}\1|"