mirror of
https://github.com/jb55/nostril.git
synced 2024-11-21 16:29:06 -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
|
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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user