mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-10-26 15:54:17 +00:00
Optimization
This commit is contained in:
1 parent
3c0a1bd9dd
commit
934460af77
1 file changed
+2
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user