From 62b740b9532bc35f7fb77a04833ba4ab034ed9fc Mon Sep 17 00:00:00 2001 From: qo-op Date: Tue, 12 May 2020 01:48:20 +0200 Subject: [PATCH] silkaj_balance --- g1sms/functions.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/g1sms/functions.sh b/g1sms/functions.sh index 4a52fde..c564418 100755 --- a/g1sms/functions.sh +++ b/g1sms/functions.sh @@ -214,6 +214,7 @@ function sms_uid2key (){ ################################################################################################################################# function silkaj_balance () { pubkey="$1" +[[ ! $pubkey ]] && echo "0" && exit silkajQuantitativeAmountPattern='Total\sQuantitative\s+=\s+(.*)\s+Ğ1' silkajExitCode=1 while [ $silkajExitCode -ne 0 ]