From 54fdcb108916c5bedb4d9300fe633077cc169593 Mon Sep 17 00:00:00 2001 From: TheiLLeniumStudios <104288623+TheiLLeniumStudios@users.noreply.github.com> Date: Mon, 6 Feb 2023 12:13:22 +0000 Subject: [PATCH] Update --- entrypoint.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/entrypoint.sh b/entrypoint.sh index c7de54d..4c51bde 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -69,7 +69,8 @@ fi resources_to_restart= -echo "${DIFF}" | while read -r changed; do +IFS=$'\n' +for changed in $DIFF; do STATUS=${changed:0:1} changed=${changed#??} if beginswith ${RESOURCES_FOLDER} "${changed}"; then @@ -78,6 +79,7 @@ echo "${DIFF}" | while read -r changed; do resources_to_restart="$(append_if_not_exists "$filtered" "$resources_to_restart")" fi done +unset IFS echo $resources_to_restart