mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-06 07:35:56 +02:00
Update 01-config_yaml.sh
This commit is contained in:
@@ -35,6 +35,9 @@ CONFIGSOURCE="$CONFIGLOCATION"/config.yaml
|
|||||||
if bashio::config.has_value 'CONFIG_LOCATION'; then
|
if bashio::config.has_value 'CONFIG_LOCATION'; then
|
||||||
|
|
||||||
CONFIGSOURCE=$(bashio::config "CONFIG_LOCATION")
|
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 does not end by config.yaml, remove trailing slash and add config.yaml
|
||||||
if [[ "$CONFIGSOURCE" != *".yaml" ]]; then
|
if [[ "$CONFIGSOURCE" != *".yaml" ]]; then
|
||||||
CONFIGSOURCE="${CONFIGSOURCE%/}"/config.yaml
|
CONFIGSOURCE="${CONFIGSOURCE%/}"/config.yaml
|
||||||
|
|||||||
Reference in New Issue
Block a user