Update 91-OCR.sh

This commit is contained in:
Alexandre
2022-03-22 18:45:10 +01:00
committed by GitHub
parent 7bce92bd1b
commit 732ad061d3

View File

@@ -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"