From 2ab1eac0ad90d5cc2253eaa0d60f0a2998ae74f1 Mon Sep 17 00:00:00 2001 From: Bastian Dehn Date: Sat, 4 Apr 2026 08:34:34 +0200 Subject: [PATCH] fix scantopdf ocr jobs --- Makefile | 2 ++ src/addocr.sh | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 36a30c4..4962ca8 100644 --- a/Makefile +++ b/Makefile @@ -31,6 +31,8 @@ clean: ################################################################################ $(BUILDDIR)/parts/scanbasic.sh: \ + $(SRCDIR)/errlog.sh \ + $(SRCDIR)/keywords.sh \ $(SRCDIR)/addocr.sh \ $(SRCDIR)/scanbasic.sh diff --git a/src/addocr.sh b/src/addocr.sh index 8997962..18f3d0a 100644 --- a/src/addocr.sh +++ b/src/addocr.sh @@ -27,7 +27,7 @@ addocr() || return $? echo "ℹ️ INFO: adding ocr on file $input" - ocrmypdf --quiet --jobs $(nproc) --language deu $input $output \ + ocrmypdf --quiet --jobs $jobs --language deu $input $output \ || errlog "could not add ocr on $input" \ || return $? -- 2.47.3