diff --git a/gazpar2mqtt/rootfs/scripts/99-run.sh b/gazpar2mqtt/rootfs/scripts/99-run.sh index 139afb46a..8b8ed5fcb 100644 --- a/gazpar2mqtt/rootfs/scripts/99-run.sh +++ b/gazpar2mqtt/rootfs/scripts/99-run.sh @@ -64,9 +64,10 @@ function parse_yaml { # Get variables and export bashio::log.info "Starting the app with the variables in /config/gazpar2mqtt" for word in $(parse_yaml "$CONFIGSOURCE" ""); do + # Clean output + word=${word//[\"\']/} # Data validation if [[ $word =~ ^.+[=].+$ ]]; then - word=${word//[\"\']/} export $word # Export the variable bashio::log.blue "$word" else