mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-02-21 11:00:32 +01:00
SC2086
This commit is contained in:
@@ -8,7 +8,7 @@ OCRLANG="$(bashio::config "ocrlang")"
|
|||||||
CONFIGLOCATION="$(bashio::config "CONFIG_LOCATION")"
|
CONFIGLOCATION="$(bashio::config "CONFIG_LOCATION")"
|
||||||
#If it's a file, get the folder
|
#If it's a file, get the folder
|
||||||
if [ ! -d "$CONFIGLOCATION" ]; then
|
if [ ! -d "$CONFIGLOCATION" ]; then
|
||||||
CONFIGLOCATION="$(dirname $CONFIGLOCATION)"
|
CONFIGLOCATION="$(dirname "$CONFIGLOCATION")"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
languageCount=$(echo "$OCRLANG" | tr -cd ',' | wc -c)
|
languageCount=$(echo "$OCRLANG" | tr -cd ',' | wc -c)
|
||||||
|
|||||||
Reference in New Issue
Block a user