mirror of
https://github.com/jb55/nostril.git
synced 2025-08-05 09:08:28 -04:00
scripts: fix error when sec/relay is missing
This commit is contained in:
@@ -43,7 +43,7 @@ shift $((OPTIND-1))
|
|||||||
|
|
||||||
if [ -z $relay ]; then
|
if [ -z $relay ]; then
|
||||||
relay=$(git config nostr.relays)
|
relay=$(git config nostr.relays)
|
||||||
if [ $relay = "" ]; then
|
if [[ $relay == "" ]]; then
|
||||||
unset relay
|
unset relay
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
@@ -58,7 +58,7 @@ shift
|
|||||||
|
|
||||||
# this can be overridden
|
# this can be overridden
|
||||||
sec="$(git config nostr.secretkey)"
|
sec="$(git config nostr.secretkey)"
|
||||||
if [ $sec != "" ]; then
|
if [[ $sec != "" ]]; then
|
||||||
sec="--sec $sec"
|
sec="--sec $sec"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user