mirror of
https://github.com/jb55/nostril.git
synced 2024-11-23 16:49:06 -05:00
scripts/git: print when stuff is not setup
This commit is contained in:
parent
1a82830db1
commit
ba7acb85a0
|
@ -70,13 +70,17 @@ json=$(nostril --envelope $sec --kind 19691228 --tag author "$author" --tag subj
|
||||||
id=$(jq -r '.[1].id' <<<"$json")
|
id=$(jq -r '.[1].id' <<<"$json")
|
||||||
|
|
||||||
if [ -n "$dryrun" ]; then
|
if [ -n "$dryrun" ]; then
|
||||||
printf "DRY RUN. printing event data\n\n" >&2
|
|
||||||
echo "$json"
|
echo "$json"
|
||||||
|
printf "\nDRY RUN. printing event data\n" >&2
|
||||||
elif [ -z "$relay" ]; then
|
elif [ -z "$relay" ]; then
|
||||||
printf "RELAY NOT SET, not relaying.\n\n" >&2
|
|
||||||
echo "$json"
|
echo "$json"
|
||||||
|
printf "\nRELAY NOT SET, not relaying. Use -r wss://relay.damus.io or 'git config --global nostr.relays wss://relay.damus.io'\n" >&2
|
||||||
else
|
else
|
||||||
echo "$id"
|
echo "$id"
|
||||||
printf "relaying to $relay using $NOSTR_RELAYER...\n" >&2
|
printf "relaying to $relay using $NOSTR_RELAYER...\n" >&2
|
||||||
<<<$json $NOSTR_RELAYER "$relay"
|
<<<$json $NOSTR_RELAYER "$relay"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [[ $sec == "" ]]; then
|
||||||
|
printf "NOSTR SECRET KEY NOT SET, using random key. Use --sec <key> or 'git config --global nostr.secretkey <hexkey>'\n" >&2
|
||||||
|
fi
|
||||||
|
|
Loading…
Reference in New Issue
Block a user