Explicity tell zbarimg to expect a qrcode.
This commit is contained in:
parent
d48e5707c3
commit
0fe76423cf
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue