aboutsummaryrefslogtreecommitdiff
path: root/clone-all-cgit-repos.sh
diff options
context:
space:
mode:
authorheqnx <root@heqnx.com>2025-05-27 22:06:29 +0300
committerheqnx <root@heqnx.com>2025-05-27 22:06:29 +0300
commit97ae6428b95aeed473cebb0d007d2059ae1545d6 (patch)
tree98f2a63ded02996297fe0a81a3f7c4db120f6720 /clone-all-cgit-repos.sh
parent7bc1627859461cddbedd9317bd729356f001b868 (diff)
downloadgists-97ae6428b95aeed473cebb0d007d2059ae1545d6.tar.gz
gists-97ae6428b95aeed473cebb0d007d2059ae1545d6.zip
improved and changed name of script
Diffstat (limited to 'clone-all-cgit-repos.sh')
-rw-r--r--clone-all-cgit-repos.sh11
1 files changed, 0 insertions, 11 deletions
diff --git a/clone-all-cgit-repos.sh b/clone-all-cgit-repos.sh
deleted file mode 100644
index 1fdf658..0000000
--- a/clone-all-cgit-repos.sh
+++ /dev/null
@@ -1,11 +0,0 @@
-#!/bin/bash
-
-cgit="https://cgit.heqnx.com"
-
-repos=$(curl -sSL "${cgit}" | grep -o "<a href='/[^']*/'>" | sed -E "s/^<a href='([^']*)'>/\1/" | sort -u)
-
-mkdir repos &>/dev/null
-while IFS= read -r i; do
- printf "%s\n" "[inf] ${cgit}${i}"
- git -C repos clone "${cgit}${i}"
-done <<< "${repos}"