From: Bastian Dehn Date: Sat, 4 Apr 2026 06:34:34 +0000 (+0200) Subject: fix scantopdf ocr jobs X-Git-Tag: v1.1.4^2~6 X-Git-Url: https://gitweb.hhaalo.de/?a=commitdiff_plain;h=2ab1eac0ad90d5cc2253eaa0d60f0a2998ae74f1;p=scantopdf.git fix scantopdf ocr jobs --- 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 $?