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
1 changed files with 2 additions and 2 deletions

View File

@ -43,7 +43,7 @@ shift $((OPTIND-1))
if [ -z $relay ]; then
relay=$(git config nostr.relays)
if [ $relay = "" ]; then
if [[ $relay == "" ]]; then
unset relay
fi
fi
@ -58,7 +58,7 @@ shift
# this can be overridden
sec="$(git config nostr.secretkey)"
if [ $sec != "" ]; then
if [[ $sec != "" ]]; then
sec="--sec $sec"
fi