mirror of
https://github.com/openoms/joininbox.git
synced 2026-08-15 12:50:37 +02:00
fix qr function
This commit is contained in:
parent
20982331c0
commit
e5e02fdcb8
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue