mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-08 16:45:56 +02:00
Update 91-OCR.sh
This commit is contained in:
@@ -1,6 +1,8 @@
|
|||||||
#!/usr/bin/with-contenv bashio
|
#!/usr/bin/with-contenv bashio
|
||||||
# shellcheck shell=bash
|
# shellcheck shell=bash
|
||||||
|
|
||||||
|
exit 0
|
||||||
|
|
||||||
# Allow OCR setting
|
# Allow OCR setting
|
||||||
OCRLANG="$(bashio::config "ocrlang")"
|
OCRLANG="$(bashio::config "ocrlang")"
|
||||||
|
|
||||||
@@ -11,8 +13,6 @@ if [ ! -d "$CONFIGLOCATION" ]; then
|
|||||||
CONFIGLOCATION="$(dirname "$CONFIGLOCATION")"
|
CONFIGLOCATION="$(dirname "$CONFIGLOCATION")"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
exit 0
|
|
||||||
|
|
||||||
languageCount=$(echo "$OCRLANG" | tr -cd ',' | wc -c)
|
languageCount=$(echo "$OCRLANG" | tr -cd ',' | wc -c)
|
||||||
languageCount=$((languageCount+1))
|
languageCount=$((languageCount+1))
|
||||||
bashio::log.info "Configuring ${languageCount} languages"
|
bashio::log.info "Configuring ${languageCount} languages"
|
||||||
|
|||||||
Reference in New Issue
Block a user