Update 01-config_yaml.sh

This commit is contained in:
Alexandre
2023-11-23 18:46:33 +01:00
committed by GitHub
parent 7100f7ac12
commit 3741e9f890

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 [[ "$CONFIGSOURCE" != "*.yaml" ]]; then
# Remove trailing slash and add config.yaml
CONFIGSOURCE="${CONFIGSOURCE%/}"/config.yaml
fi