Why Nostr? What is Njump?
2024-07-03 00:49:40

npub102…k3lss on Nostr: commit 3b98f9ef904b696a64e479aa639ab86123cddd4d Author: randymcmillan ...

commit 3b98f9ef904b696a64e479aa639ab86123cddd4d
Author: randymcmillan <[email protected]>
Date: Tue May 14 14:32:32 2024 -0400

template/gnostr-set-relays:use newer rust gnostr-get-relays -s

diff --git a/template/gnostr-set-relays b/template/gnostr-set-relays
index d17b6a51d..c8cd9f0b0 100755
--- a/template/gnostr-set-relays
+++ b/template/gnostr-set-relays
@@ -13,18 +13,6 @@ if [[ $1 = "-h" ]] || [[ $1 = "--help" ]]; then
printf " git config --get gnostr.relay-1\n"
printf " git config --get gnostr.relay-#\n"

- printf " \nmore usage:\n\n"
- printf " declare count=0\n"
- printf " for relay in \$(gnostr-fetch-watch-list-iterator); do\n"
- printf " git config --global --replace gnostr.relay-\$count \"\$relay\";\n"
- printf " count=$((count + 1))\n"
- printf " #echo \$count\n"
- printf " done\n"
- printf " if [[ $1 = "-vv" ]] || [[ $1 = "--verbose" ]]; then\n"
- printf " git config --global -l | grep gnostr\n"
- printf " fi\n"
-
-
exit;
fi
if [[ $1 = "-v" ]] || [[ $1 = "--version" ]]; then
@@ -34,12 +22,18 @@ if [[ $1 = "-v" ]] || [[ $1 = "--version" ]]; then
exit;
fi
declare count=0
-for relay in $(gnostr-fetch-watch-list-iterator); do
+RELAYS=$(gnostr-get-relays -s)
+git config --global --replace gnostr.relays "$RELAYS";
+#echo $RELAYS
+for relay in $RELAYS; do
+#if [[ $1 = "-vv" ]] || [[ $1 = "--verbose" ]]; then
#echo "gnostr.relay-$count=$relay"
+#fi
git config --global --replace gnostr.relay-$count "$relay";
count=$((count + 1))
#echo $count
done
if [[ $1 = "-vv" ]] || [[ $1 = "--verbose" ]]; then
- git config --global -l | grep gnostr
+ #git config --global -l | grep gnostr.relays
+ git config --global -l | grep gnostr.relay-
fi
Author Public Key
npub102x55wezrqjmqqzxq9tj4t5t3py5h2v0008jsmugumu0vx2yyyxsmk3lss