Update 00-config_location.sh

This commit is contained in:
Alexandre
2023-02-05 06:52:10 +01:00
committed by GitHub
parent 7eb3b19613
commit d10d61fbe2

View File

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