From 50d16f127bec1db32ebf3f84c56192b89a9af588 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Sun, 4 Jun 2023 10:15:31 +0200 Subject: [PATCH] Update 99-run.sh --- free_games_claimer/rootfs/etc/cont-init.d/99-run.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/free_games_claimer/rootfs/etc/cont-init.d/99-run.sh b/free_games_claimer/rootfs/etc/cont-init.d/99-run.sh index 05076bf6e..929aed055 100755 --- a/free_games_claimer/rootfs/etc/cont-init.d/99-run.sh +++ b/free_games_claimer/rootfs/etc/cont-init.d/99-run.sh @@ -26,13 +26,19 @@ chmod -R 777 "$CONFIG_HOME" # Export variables set -a -cp /./"$CONFIG_HOME"/config.env /config.env +echo "" +bashio::log.info "Getting variables from $CONFIG_HOME/config.env" +cp "$CONFIG_HOME"/config.env /config.env # Remove previous instance sed -i "s|export ||g" /config.env # Add export for non empty lines sed -i '/\S/s/^/export /' /config.env # Delete lines starting with # sed -i '/export #/d' /config.env +# Show what is exported +while IFS= read -r line; do + bashio::log.blue "${line#"export "}" +done < /config.env # Get variables # shellcheck source=/dev/null source /config.env