Explicity tell zbarimg to expect a qrcode.

This commit is contained in:
Brock A. Martin 2016-07-17 14:04:43 -05:00
parent d48e5707c3
commit 0fe76423cf

View file

@ -52,7 +52,7 @@ for img in "$@"; do
fi fi
asc_key="${tmp_file}.${index}" asc_key="${tmp_file}.${index}"
echo "decoding ${img}" 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 if [ $? -ne 0 ]; then
echo "failed to decode QR image" echo "failed to decode QR image"
exit 2 exit 2