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")"
#If it's a file, get the folder
if [ ! -d "$CONFIGLOCATION" ]; then
CONFIGLOCATION="$(dirname $CONFIGLOCATION)"
CONFIGLOCATION="$(dirname "$CONFIGLOCATION")"
fi
languageCount=$(echo "$OCRLANG" | tr -cd ',' | wc -c)