From 1a82830db1ff7c0fbaff5b74fffb0e59fdb05575 Mon Sep 17 00:00:00 2001 From: William Casarin Date: Thu, 17 Nov 2022 12:27:39 -0800 Subject: [PATCH] scripts: fix error when sec/relay is missing --- scripts/git-send-nostr | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/git-send-nostr b/scripts/git-send-nostr index 0456211..f9c3a3e 100755 --- a/scripts/git-send-nostr +++ b/scripts/git-send-nostr @@ -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