From cd6e1aa84c62e6be287867d07b83322f670e2193 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20B=C3=A4dorf?= Date: Tue, 10 Oct 2023 22:02:03 +0200 Subject: [PATCH] feat: make device option optional --- src/main.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.ts b/src/main.ts index 1463070..aa2eaa4 100644 --- a/src/main.ts +++ b/src/main.ts @@ -73,7 +73,7 @@ scan2paperless \\ const scanimageProcess = Deno.run({ cmd: [ "scanimage", - "-d", device, + ...(device ? [ "-d", device, ] : []), "--format=jpeg", "--resolution", "300", "--progress",