mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-05-01 06:40:50 +02:00
Clean code
This commit is contained in:
@@ -40,7 +40,7 @@ for KEYS in "${arr[@]}"; do
|
|||||||
######################################
|
######################################
|
||||||
# Export the variable to run scripts #
|
# Export the variable to run scripts #
|
||||||
######################################
|
######################################
|
||||||
export "${KEYS}='${VALUE//[\"\']/}'"
|
export "${KEYS}='${VALUE}'"
|
||||||
|
|
||||||
# For non s6
|
# For non s6
|
||||||
if cat /etc/services.d/*/*run* &>/dev/null; then sed -i "1a export $line" /etc/services.d/*/*run* 2>/dev/null; fi
|
if cat /etc/services.d/*/*run* &>/dev/null; then sed -i "1a export $line" /etc/services.d/*/*run* 2>/dev/null; fi
|
||||||
|
|||||||
Reference in New Issue
Block a user