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 ]