Clean code

This commit is contained in:
Alexandre
2023-02-12 11:44:16 +01:00
parent 548cf0d2dc
commit 0d697bcd4a

View File

@@ -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