From 627a7301917427006b9736109ff1a174f2ec666b Mon Sep 17 00:00:00 2001 From: moritzrfs Date: Sun, 8 Feb 2026 13:46:10 +0100 Subject: [PATCH] Add output logic --- scan.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scan.sh b/scan.sh index 5e24106..3feb79a 100755 --- a/scan.sh +++ b/scan.sh @@ -18,7 +18,9 @@ # Install: # sudo apt install imagemagick poppler-utils sane tesseract-ocr tesseract-ocr-deu tesseract-ocr-eng unpaper -OUTPUT="scan_$(date +%Y-%m-%d-%H-%M-%S).pdf" +SCAN_DIR="scans" +mkdir -p "$SCAN_DIR" +OUTPUT="$SCAN_DIR/scan_$(date +%Y-%m-%d-%H-%M-%S).pdf" HELP=0 VERBOSE=0