mirror of
https://github.com/jb55/nostril.git
synced 2024-11-21 08:19:08 -05:00
scripts: fix error when sec/relay is missing
This commit is contained in:
parent
75a6260160
commit
1a82830db1
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user