From 64b6755ee76d1cff0e66ee1e756a742d21ad355c Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Thu, 5 Dec 2024 17:51:16 +0100 Subject: [PATCH] Update 01-config_yaml.sh --- .templates/01-config_yaml.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.templates/01-config_yaml.sh b/.templates/01-config_yaml.sh index a93600b66..43b7d50f8 100755 --- a/.templates/01-config_yaml.sh +++ b/.templates/01-config_yaml.sh @@ -35,6 +35,9 @@ CONFIGSOURCE="$CONFIGLOCATION"/config.yaml if bashio::config.has_value 'CONFIG_LOCATION'; then CONFIGSOURCE=$(bashio::config "CONFIG_LOCATION") + if [[ "$CONFIGSOURCE" == *.* ]]; then + CONFIGSOURCE=$(dirname "$CONFIGSOURCE") + fi # If does not end by config.yaml, remove trailing slash and add config.yaml if [[ "$CONFIGSOURCE" != *".yaml" ]]; then CONFIGSOURCE="${CONFIGSOURCE%/}"/config.yaml