command -v scanimage > /dev/null \
|| errlog "command scanimage not found" \
|| return $?
- [ -n "$pagecount" ] || errlog "no page count" || return $?
- [ -n "$output" ] || errlog "no pdf file name" || return $?
+ [ -n "$pagecount" ] || errlog "missing page count" || return $?
+ [ -n "$output" ] || errlog "missing output name" || return $?
scanimage --source=DocumentFeeder \
--mode=Color \
command -v scanimage > /dev/null \
|| errlog "command scanimage not found" \
|| return $?
- [ -n "$pagecount" ] || errlog "no page count" || return $?
- [ -n "$output" ] || errlog "no pdf file name" || return $?
+ [ -n "$pagecount" ] || errlog "missing page count" || return $?
+ [ -n "$output" ] || errlog "missing output name" || return $?
scanimage --source=DocumentFeeder \
--mode=BW \
command -v scanimage > /dev/null \
|| errlog "command scanimage not found" \
|| return $?
- [ -n "$pagecount" ] || errlog "no page count" || return $?
- [ -n "$output" ] || errlog "no pdf file name" || return $?
+ [ -n "$pagecount" ] || errlog "missing page count" || return $?
+ [ -n "$output" ] || errlog "missing output name" || return $?
scanimage --source=DocumentFeeder \
--mode=Gray \