feat: make device option optional

This commit is contained in:
Benjamin Bädorf 2023-10-10 22:02:03 +02:00
parent a66e3c9f80
commit cd6e1aa84c
No known key found for this signature in database
GPG key ID: 4406E80E13CD656C

View file

@ -73,7 +73,7 @@ scan2paperless \\
const scanimageProcess = Deno.run({
cmd: [
"scanimage",
"-d", device,
...(device ? [ "-d", device, ] : []),
"--format=jpeg",
"--resolution", "300",
"--progress",