mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-21 23:09:14 +02:00
Use "."
This commit is contained in:
@@ -33,8 +33,8 @@ CONFIGSOURCE="$CONFIGLOCATION"/config.yaml
|
|||||||
# Is there a custom path
|
# Is there a custom path
|
||||||
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
|
if [[ "$CONFIGSOURCE" == *"."* ]]; then
|
||||||
CONFIGSOURCE=$(dirname "$CONFIGSOURCE")
|
CONFIGSOURCE=$(dirname "$CONFIGSOURCE")
|
||||||
fi
|
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
|
||||||
|
|||||||
Reference in New Issue
Block a user