feat: make device option optional
This commit is contained in:
parent
a66e3c9f80
commit
cd6e1aa84c
|
@ -73,7 +73,7 @@ scan2paperless \\
|
||||||
const scanimageProcess = Deno.run({
|
const scanimageProcess = Deno.run({
|
||||||
cmd: [
|
cmd: [
|
||||||
"scanimage",
|
"scanimage",
|
||||||
"-d", device,
|
...(device ? [ "-d", device, ] : []),
|
||||||
"--format=jpeg",
|
"--format=jpeg",
|
||||||
"--resolution", "300",
|
"--resolution", "300",
|
||||||
"--progress",
|
"--progress",
|
||||||
|
|
Loading…
Reference in a new issue