From 20c7c3554eb2442da2da9b2278d32544f8557b90 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Sun, 14 Nov 2021 11:59:57 +0100 Subject: [PATCH] Update 99-run.sh --- enedisgateway2mqtt/rootfs/scripts/99-run.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/enedisgateway2mqtt/rootfs/scripts/99-run.sh b/enedisgateway2mqtt/rootfs/scripts/99-run.sh index cd3575d3a..5b3b178f2 100644 --- a/enedisgateway2mqtt/rootfs/scripts/99-run.sh +++ b/enedisgateway2mqtt/rootfs/scripts/99-run.sh @@ -30,7 +30,7 @@ for KEYS in ${arr[@]}; do # Write it in the config file echo ${SUBKEYS} >>${CONFIGSOURCE} # Say it loud - echo "... ${SUBKEYS}" + # echo "... ${SUBKEYS}" done # If it is a normal field else @@ -39,7 +39,7 @@ for KEYS in ${arr[@]}; do # Write it in the config file echo "${KEYS}=$(jq .$KEYS ${JSONSOURCE})" >>${CONFIGSOURCE} # Say it loud - echo "... ${KEYS}=$(jq .$KEYS ${JSONSOURCE})" + # echo "... ${KEYS}=$(jq .$KEYS ${JSONSOURCE})" fi done @@ -50,7 +50,7 @@ done bashio::log.info "Starting the app with the variables in /config/enedisgateway2mqtt" # Remove ' -sed -i 's|\x27||g' $CONFIGSOURCE +# sed -i 's|\x27||g' $CONFIGSOURCE sed -i 's|"||g' $CONFIGSOURCE # For all keys in config file @@ -58,7 +58,7 @@ for word in $(cat $CONFIGSOURCE); do # Data validation if [[ $word =~ ^.+[=].+$ ]]; then export $word # Export the variable - bashio::log.blue "... $word" + bashio::log.blue "$word" else bashio::log.fatal "$word does not follow the structure KEY=text, it will be ignored and removed from the config" sed -i "/$word/ d" ${CONFIGSOURCE}