mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-15 17:08:19 +01:00
Update 01-config_yaml.sh
This commit is contained in:
@@ -30,7 +30,7 @@ if bashio::config.has_value 'CONFIG_LOCATION'; then
|
||||
# Get config source
|
||||
CONFIGSOURCE=$(bashio::config "CONFIG_LOCATION")
|
||||
# Check CONFIGSOURCE ends with config.yaml
|
||||
if [[ "$(basename "$CONFIGSOURCE")" != "*.yaml" ]]; then
|
||||
if [[ "$CONFIGSOURCE" != "*.yaml" ]]; then
|
||||
# Remove trailing slash and add config.yaml
|
||||
CONFIGSOURCE="${CONFIGSOURCE%/}"/config.yaml
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user