export $line

This commit is contained in:
Alexandre
2022-01-02 19:23:04 +01:00
committed by GitHub
parent d52efef21e
commit 5f290a7c64

View File

@@ -16,7 +16,7 @@ for KEYS in "${arr[@]}"; do
line="${KEYS}=${VALUE//[\"\']/}"
# Use locally
if ! bashio::config.false "verbose"; then bashio::log.blue "$line"; fi
export line
export $line
# Export the variable to run scripts
line="${KEYS}=${VALUE//[\"\']/} &>/dev/null"
sed -i "1a export $line" /etc/services.d/*/*run* 2>/dev/null || sed -i "1a export $line" /scripts/*run*