Update 01-config_yaml.sh

This commit is contained in:
Alexandre
2023-11-23 18:13:16 +01:00
committed by GitHub
parent dbbd0c6b14
commit 4232149b88

View File

@@ -30,7 +30,7 @@ if bashio::config.has_value 'CONFIG_LOCATION'; then
# Get config source
CONFIGSOURCE=$(bashio::config "CONFIG_LOCATION")
# Check CONFIGSOURCE ends with config.yaml
if [ "$(basename "$CONFIGSOURCE")" != "*.yaml" ]; then
if [[ "$(basename "$CONFIGSOURCE")" != "*.yaml" ]]; then
# Remove trailing slash and add config.yaml
CONFIGSOURCE="${CONFIGSOURCE%/}"/config.yaml
fi