From 0fe76423cf054285a814f4c5f64e66961f0d584e Mon Sep 17 00:00:00 2001 From: "Brock A. Martin" Date: Sun, 17 Jul 2016 14:04:43 -0500 Subject: [PATCH] Explicity tell zbarimg to expect a qrcode. --- qr2asc.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qr2asc.sh b/qr2asc.sh index 8ead0e5..9f00665 100755 --- a/qr2asc.sh +++ b/qr2asc.sh @@ -52,7 +52,7 @@ for img in "$@"; do fi asc_key="${tmp_file}.${index}" echo "decoding ${img}" - chunk=$( zbarimg --raw ${img} 2>/dev/null | perl -p -e 'chomp if eof' ) + chunk=$( zbarimg --raw -Sdisable -Sqrcode.enable ${img} 2>/dev/null ) if [ $? -ne 0 ]; then echo "failed to decode QR image" exit 2