Merge pull request #2 from bamartin125/hotfix/explicit-zbarimg-symbols

Update zbarimg command line to be explicit with qrcode decoding
This commit is contained in:
Kevin Douglas 2016-07-28 08:34:36 -05:00 committed by GitHub
commit 3787455664

View file

@ -43,11 +43,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' )
# Please use this next line instead of teh one above if zbarimg does
# not decode the qr code properly in tests
# (zbarimg needs to be told it is being given a qr code to decode)
#chunk=$( zbarimg --raw --set disable --set qrcode.enable ${img} 2>/dev/null )
chunk=$( zbarimg --raw --set disable --set qrcode.enable ${img} 2>/dev/null )
if [ $? -ne 0 ]; then
echo "failed to decode QR image"
exit 2