nostril

A C cli tool for creating nostr events
git clone git://jb55.com/nostril
Log | Files | Refs | Submodules | README | LICENSE

commit 1a82830db1ff7c0fbaff5b74fffb0e59fdb05575
parent 75a62601609397fdee5fa0597cd9a686e9979547
Author: William Casarin <jb55@jb55.com>
Date:   Thu, 17 Nov 2022 12:27:39 -0800

scripts: fix error when sec/relay is missing

Diffstat:
Mscripts/git-send-nostr | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git 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