NewLines in bashrc

This commit is contained in:
Alexandre
2023-05-07 09:34:18 +02:00
committed by GitHub
parent 33bfdc6473
commit 10f439a97a

View File

@@ -131,7 +131,7 @@ while IFS= read -r line; do
sed -i "1a export $KEYS=\'$VALUE\'" /scripts/*run* 2>/dev/null || true
# Export to s6
if [ -d /var/run/s6/container_environment ]; then printf "%s" "${VALUE}" > /var/run/s6/container_environment/"${KEYS}"; fi
printf "%s" "${KEYS}=\"${VALUE}\"" >> ~/.bashrc
printf "%s" "\n${KEYS}=\"${VALUE}\"" >> ~/.bashrc
# Show in log
if ! bashio::config.false "verbose"; then bashio::log.blue "$KEYS=\'$VALUE\'"; fi
else