mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-02-21 11:00:32 +01:00
@@ -84,9 +84,12 @@ function parse_yaml {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Get variables and export
|
# Get variables and export
|
||||||
bashio::log.info "Starting the app with the variables in in $CONFIGSOURCE"
|
bashio::log.info "Starting the app with the variables in $CONFIGSOURCE"
|
||||||
# Get list of parameters in a file
|
# Get list of parameters in a file
|
||||||
parse_yaml "$CONFIGSOURCE" "" >/tmpfile
|
parse_yaml "$CONFIGSOURCE" "" >/tmpfile
|
||||||
|
# Escape dollars
|
||||||
|
sed -i 's|$.|\$|g' /tmpfile
|
||||||
|
|
||||||
while IFS= read -r line; do
|
while IFS= read -r line; do
|
||||||
# Clean output
|
# Clean output
|
||||||
line="${line//[\"\']/}"
|
line="${line//[\"\']/}"
|
||||||
|
|||||||
Reference in New Issue
Block a user