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
commit158c493588b9a7fb656f999e27988c2757678299 (patch)
tree658f8ed64fdbc98abd88ed55872875c9094dbc7d
parentcfd4c3fb648c8c92322d8a2b7c594fd48b60cb42 (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|"