Merge pull request #26 from p/quote-mode

Quote the --mode argument for printers like Brother DCP-7065DN which use spaces in mode names
This commit is contained in:
Raman Gupta 2021-07-27 21:42:49 -04:00 committed by GitHub
commit 3b2d3cedd4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

2
scan
View File

@ -263,7 +263,7 @@ echo >&2 "Scanning..."
if [[ $MODE_HW_DEFAULT == 1 ]]; then
MODE=
else
MODE="--mode $MODE"
MODE="--mode '$MODE'"
fi
eval scanadf -d \'"$DEVICE"\' $MAXPAGE $PGHEIGHT $PGWIDTH -S $SCRIPT --script-wait --resolution $RESOLUTION $MODE $DESKEW $CROP $DRIVER_OPTION $SOURCE -o $TMP_DIR/scan-%04d