From 732ad061d3f109c7f3e046817bcee65a5defe9bd Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Tue, 22 Mar 2022 18:45:10 +0100 Subject: [PATCH] Update 91-OCR.sh --- papermerge/rootfs/etc/cont-init.d/91-OCR.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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"