Merge pull request #248 from linuxserver/papermerge-multilangocr-apt

This commit is contained in:
Roxedus
2021-09-26 22:19:57 +02:00
committed by GitHub
2 changed files with 3 additions and 1 deletions
+3
View File
@@ -0,0 +1,3 @@
#!/usr/bin/with-contenv bash
apt-get update
-1
View File
@@ -2,7 +2,6 @@
if [ -n "$OCRLANG" ]; then
echo "OCRLANG variable is set, processing the language packages"
apt-get update
for i in $(echo "$OCRLANG" | tr "," " "); do
if apt-cache show tesseract-ocr-"${i}" > /dev/null 2>&1; then
echo "installing tesseract-ocr-${i}"