mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-02-21 11:00:32 +01:00
correct SC2144
This commit is contained in:
@@ -19,8 +19,8 @@ for KEYS in ${arr[@]}; do
|
|||||||
if ! bashio::config.false "verbose"; then bashio::log.blue "$line"; fi
|
if ! bashio::config.false "verbose"; then bashio::log.blue "$line"; fi
|
||||||
# Export the variable to run scripts
|
# Export the variable to run scripts
|
||||||
line="${KEYS}=${VALUE//[\"\']/} 2>/dev/null || true"
|
line="${KEYS}=${VALUE//[\"\']/} 2>/dev/null || true"
|
||||||
[ -f /etc/services.d/*/*run* ] && sed -i "1a export $line" /etc/services.d/*/*run* 2>/dev/null
|
if [ -f /etc/services.d/*/*run* ]; then sed -i "1a export $line" /etc/services.d/*/*run* 2>/dev/null; fi
|
||||||
[ -f /etc/cont-init.d/*run* ] && sed -i "1a export $line" /etc/cont-init.d/*run* 2>/dev/null
|
if [ -f /etc/cont-init.d/*run* ]; then sed -i "1a export $line" /etc/cont-init.d/*run* 2>/dev/null; fi
|
||||||
done
|
done
|
||||||
|
|
||||||
################
|
################
|
||||||
|
|||||||
Reference in New Issue
Block a user