diff --git a/papermerge/rootfs/etc/cont-init.d/91-OCR.sh b/papermerge/rootfs/etc/cont-init.d/91-OCR.sh index 1dfe95d51..38df5f17e 100644 --- a/papermerge/rootfs/etc/cont-init.d/91-OCR.sh +++ b/papermerge/rootfs/etc/cont-init.d/91-OCR.sh @@ -1,6 +1,8 @@ #!/usr/bin/with-contenv bashio # shellcheck shell=bash +exit 0 + # Allow OCR setting OCRLANG="$(bashio::config "ocrlang")" @@ -11,8 +13,6 @@ if [ ! -d "$CONFIGLOCATION" ]; then CONFIGLOCATION="$(dirname "$CONFIGLOCATION")" fi -exit 0 - languageCount=$(echo "$OCRLANG" | tr -cd ',' | wc -c) languageCount=$((languageCount+1)) bashio::log.info "Configuring ${languageCount} languages"