This commit is contained in:
Alexandre
2022-03-21 15:41:21 +01:00
committed by GitHub
parent fcbef09e8a
commit 4a8dedcbfe

View File

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