mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-05 07:14:08 +02:00
This commit is contained in:
@@ -30,8 +30,9 @@ 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")" != "config.yaml" ]; then
|
||||
bashio::log.red "Watch-out: your CONFIG_LOCATION should end by config.yaml, and instead it is $(basename "$CONFIGSOURCE")"
|
||||
if [ "$(basename "$CONFIGSOURCE")" != "*.yaml" ]; then
|
||||
# Remove trailing slash and add config.yaml
|
||||
CONFIGSOURCE="${CONFIGSOURCE%/}"/config.yaml
|
||||
fi
|
||||
# Check if config is located in an acceptable location
|
||||
LOCATIONOK=""
|
||||
|
||||
Reference in New Issue
Block a user