fix: Fix outputdir arg

This commit is contained in:
Benjamin Bädorf 2023-08-29 10:39:16 +02:00
parent d5b2b8b31c
commit a66e3c9f80
No known key found for this signature in database
GPG key ID: 4406E80E13CD656C

View file

@ -39,7 +39,7 @@ scan2paperless \\
const tempDir = await Deno.makeTempDir(); const tempDir = await Deno.makeTempDir();
const device = args.d || args.device || Deno.env.get('SCANNER_DEFAULT_DEVICE'); const device = args.d || args.device || Deno.env.get('SCANNER_DEFAULT_DEVICE');
const outputDir = args.d || args.device || Deno.env.get('SCANNER_OUTPUT_DIR'); const outputDir = args.o || args.outputDir || Deno.env.get('SCANNER_OUTPUT_DIR');
const outputName = args._[0] || getRandomString(); const outputName = args._[0] || getRandomString();
const pagesToScanStr = args.n || args.pages; const pagesToScanStr = args.n || args.pages;