From a4aac6c4f5465002c72db2e1afc52993c3c6e227 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Thu, 24 Feb 2022 12:26:27 +0100 Subject: [PATCH] Update 90-config_yaml.sh --- .templates/90-config_yaml.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.templates/90-config_yaml.sh b/.templates/90-config_yaml.sh index 3743c2929..e5b1eb1bd 100644 --- a/.templates/90-config_yaml.sh +++ b/.templates/90-config_yaml.sh @@ -57,6 +57,11 @@ else # bashio::exit.nok fi +# Check if = instead of : +if [[ "$(grep -c "=" "config.yaml")" > 2 ]]; then + bashio::log.warning 'Are you sure you did not use "KEY=VALUE" ? yaml nomenclature requires "KEY:VALUE"' +fi + # Export all yaml entries as env variables # Helper function function parse_yaml {