Update 00-config_location.sh

This commit is contained in:
Alexandre
2023-02-05 13:20:20 +01:00
committed by GitHub
parent 854f4d76b8
commit d80b6741f9

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 [[ "$CONFIG_LOCATION" == *.* ]]; then CONFIG_LOCATION="$(dirname $CONFIG_LOCATION)"; fi
if [[ "$CONFIG_LOCATION" == *.* ]]; then CONFIG_LOCATION="$(dirname "$CONFIG_LOCATION")"; fi
fi
CONFIG_LOCATION=$(bashio::config 'CONFIG_LOCATION')