Update 99-run.sh

This commit is contained in:
Alexandre
2021-11-15 23:10:54 +01:00
committed by GitHub
parent 7253ccc913
commit 436977941f

View File

@@ -42,7 +42,7 @@ if bashio::config.true "test"; then
# Export all yaml entries as env variables
# Helper function
function parse_yaml {
local prefix=$2
local prefix=$2 || local prefix=""
local s='[[:space:]]*' w='[a-zA-Z0-9_]*' fs=$(echo @|tr @ '\034')
sed -ne "s|^\($s\):|\1|" \
-e "s|^\($s\)\($w\)$s:$s[\"']\(.*\)[\"']$s\$|\1$fs\2$fs\3|p" \