mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-11 10:21:02 +01:00
Update 91-OCR.sh
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user