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
Published at
2023-09-07 14:04:00Event JSON
{
"id": "01d4c53f86cf057fd9ac8d5c01a645004f7e83b2318618d94e7de642c601b4fe",
"pubkey": "d4d8d344469f0467a0b85bd78366531737a03f9de17b1131a22fbfdeed4fe2b6",
"created_at": 1694095440,
"kind": 1,
"tags": [
[
"weeble",
"2100"
],
[
"wobble",
"220734"
],
[
"blockheight",
"806607"
]
],
"content": "diff --git a/.gitignore b/.gitignore\nnew file mode 100644\nindex 0000000..c987c6b\n--- /dev/null\n+++ b/.gitignore\n@@ -0,0 +1 @@\n+gnostr-org\ndiff --git a/clone-org.sh b/clone-org.sh\nold mode 100644\nnew mode 100755\nindex ed25076..3b521f1\n--- a/clone-org.sh\n+++ b/clone-org.sh\n@@ -9,7 +9,6 @@ export GSED\n SED=${GSED:-SED}\n export SED\n echo SED=$SED\n-exit\n result=${PWD##*/} | $SED 's/[.]+/-/g'\n export result\n org=${result/-/.}\n@@ -17,27 +16,22 @@ export org\n echo $result\n echo $org\n \n-## if [ -z \"$1\" ]; then\n-## echo \"-z $1\"\n-## ORG=gnostr-org\n-## else\n-## echo \"! -z $1\"\n-## ORG=$1\n-## fi\n-exit\n+if [ -z \"$1\" ]; then\n+ echo \"-z $1\"\n+ ORG=gnostr-org\n+else\n+ echo \"! -z $1\"\n+ ORG=$1\n+fi\n \n-gh repo list $1 --limit 1000 | while read -r repo _; do\n- gh repo clone \"$repo\" \"$repo\" -- -q 2\u003e/dev/null || (\n- cd \"$repo\"\n- # Handle case where local checkout is on a non-main/master branch\n- # - ignore checkout errors because some repos may have zero commits,\n- # so no main or master\n- git checkout -q main 2\u003e/dev/null || true\n- git checkout -q master 2\u003e/dev/null || true\n- git pull -q\n- )\n-done\n-gh repo list rust-nostr --limit 1000 | while read -r repo _; do\n+\n+ORG=${1/./-}\n+echo org=$org\n+\n+## exit\n+\n+gh repo list $ORG --limit 1000 | while read -r repo _; do\n+ echo \"cloning $repo\"\n gh repo clone \"$repo\" \"$repo\" -- -q 2\u003e/dev/null || (\n cd \"$repo\"\n # Handle case where local checkout is on a non-main/master branch\n@@ -48,14 +42,3 @@ gh repo list rust-nostr --limit 1000 | while read -r repo _; do\n git pull -q\n )\n done\n-gh repo list github --limit 1000 | while read -r repo _; do\n- gh repo clone \"$repo\" \"$repo\" -- -q 2\u003e/dev/null || (\n- cd \"$repo\"\n- # Handle case where local checkout is on a non-main/master branch\n- # - ignore checkout errors because some repos may have zero commits,\n- # so no main or master\n- git checkout -q main 2\u003e/dev/null || true\n- git checkout -q master 2\u003e/dev/null || true\n- git pull -q\n- )\n-done\n\\ No newline at end of file",
"sig": "83e738f62597c21ab3f747ff6e8d2fd35f6263d235ca979812334e88ab4788a7f216611a742af6c594f9dfdf08468f2ee3ee3c7c6aac59a88e8fdadc2dc0af11"
}