Update 00-config_location.sh

This commit is contained in:
Alexandre
2023-02-05 06:53:12 +01:00
committed by GitHub
parent d10d61fbe2
commit 0d1317cd61

View File

@@ -4,7 +4,8 @@
if bashio::config.has_value 'CONFIG_LOCATION'; then
CONFIG_LOCATION="$(bashio::config 'CONFIG_LOCATION')"
# Modify if it is a base directory
if [[ "$CONFIG_LOCATION" == *.* ]]; then CONFIG_LOCATION="$(dirname $CONFIG_LOCATION)/config.xml"; fi
if [[ "$CONFIG_LOCATION" == *.* ]]; then CONFIG_LOCATION="$(dirname $CONFIG_LOCATION)/config.xmlif [[ "$CONFIG_LOCATION" == *.* ]]; then CONFIG_LOCATION="$(dirname $CONFIG_LOCATION)"; fi
; fi
fi
CONFIG_LOCATION=$(bashio::config 'CONFIG_LOCATION')