From e5e02fdcb8611e8dafa4e97e2c4bd41457b2b954 Mon Sep 17 00:00:00 2001 From: openoms Date: Thu, 4 Mar 2021 20:27:52 +0000 Subject: [PATCH] fix qr function --- scripts/_commands.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/_commands.sh b/scripts/_commands.sh index e269d7e..6769169 100755 --- a/scripts/_commands.sh +++ b/scripts/_commands.sh @@ -37,14 +37,14 @@ function qtgui() { # command: qr [string] # shows a QR code from the string function qr() { - if [ ${#$1} -eq 0 ]; then + if [ ${#1} -eq 0 ]; then echo "# Error='missing string'" fi echo echo "Displaying the text:" echo "$1" echo - qrencode -t ANSIUTF8 "${$1}" + qrencode -t ANSIUTF8 "${1}" echo "(To shrink QR code: MacOS press CMD- / Linux press CTRL-)" echo }