Why Nostr? What is Njump?
2023-09-07 14:04:00

npub16n…smw3t on Nostr: diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..c987c6b --- ...

diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..c987c6b
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+gnostr-org
diff --git a/clone-org.sh b/clone-org.sh
old mode 100644
new mode 100755
index ed25076..3b521f1
--- a/clone-org.sh
+++ b/clone-org.sh
@@ -9,7 +9,6 @@ export GSED
SED=${GSED:-SED}
export SED
echo SED=$SED
-exit
result=${PWD##*/} | $SED 's/[.]+/-/g'
export result
org=${result/-/.}
@@ -17,27 +16,22 @@ export org
echo $result
echo $org

-## if [ -z "$1" ]; then
-## echo "-z $1"
-## ORG=gnostr-org
-## else
-## echo "! -z $1"
-## ORG=$1
-## fi
-exit
+if [ -z "$1" ]; then
+ echo "-z $1"
+ ORG=gnostr-org
+else
+ echo "! -z $1"
+ ORG=$1
+fi

-gh repo list $1 --limit 1000 | while read -r repo _; do
- gh repo clone "$repo" "$repo" -- -q 2>/dev/null || (
- cd "$repo"
- # Handle case where local checkout is on a non-main/master branch
- # - ignore checkout errors because some repos may have zero commits,
- # so no main or master
- git checkout -q main 2>/dev/null || true
- git checkout -q master 2>/dev/null || true
- git pull -q
- )
-done
-gh repo list rust-nostr --limit 1000 | while read -r repo _; do
+
+ORG=${1/./-}
+echo org=$org
+
+## exit
+
+gh repo list $ORG --limit 1000 | while read -r repo _; do
+ echo "cloning $repo"
gh repo clone "$repo" "$repo" -- -q 2>/dev/null || (
cd "$repo"
# Handle case where local checkout is on a non-main/master branch
@@ -48,14 +42,3 @@ gh repo list rust-nostr --limit 1000 | while read -r repo _; do
git pull -q
)
done
-gh repo list github --limit 1000 | while read -r repo _; do
- gh repo clone "$repo" "$repo" -- -q 2>/dev/null || (
- cd "$repo"
- # Handle case where local checkout is on a non-main/master branch
- # - ignore checkout errors because some repos may have zero commits,
- # so no main or master
- git checkout -q main 2>/dev/null || true
- git checkout -q master 2>/dev/null || true
- git pull -q
- )
-done
\ No newline at end of file
Author Public Key
npub16nvdx3zxnuzx0g9ct0tcxejnzum6q0uau9a3zvdz97laam20u2mqmsmw3t