mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-10-25 23:34:17 +00:00
revert
This commit is contained in:
1 parent
924cc9181a
commit
12bfd2a4dc
1 file changed
+1
-2
@@ -68,8 +68,7 @@ for word in $(parse_yaml "$CONFIGSOURCE" ""); do
|
|||||||
# Data validation
|
# Data validation
|
||||||
if [[ $word =~ ^.+[=].+$ ]]; then
|
if [[ $word =~ ^.+[=].+$ ]]; then
|
||||||
sed -i "1a export $word" /etc/services.d/*/run # Export the variable
|
sed -i "1a export $word" /etc/services.d/*/run # Export the variable
|
||||||
sed -i "1a echo \"\$(tput sgr0)\"" /etc/services.d/*/run # Revert normal color
|
sed -i "1a echo \"\$(tput setaf 2)... ENV exported : $word\$(tput sgr0)\"" /etc/services.d/*/run # Show text in colour
|
||||||
sed -i "1a echo \"\$(tput setaf 2)... ENV exported : $word" /etc/services.d/*/run # Show text in colour
|
|
||||||
bashio::log.blue "$word"
|
bashio::log.blue "$word"
|
||||||
else
|
else
|
||||||
bashio::log.fatal "$word does not follow the structure KEY=text, it will be ignored and removed from the config"
|
bashio::log.fatal "$word does not follow the structure KEY=text, it will be ignored and removed from the config"
|
||||||
|
|||||||
Reference in new issue
Block a user