scripts: fix error when sec/relay is missing

This commit is contained in:
William Casarin 2022-11-17 12:27:39 -08:00
parent 75a6260160
commit 1a82830db1

View File

@ -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