From 5c103de0a1b94528bbfc9ef5a16459e8d2123c91 Mon Sep 17 00:00:00 2001 From: Tonye Jack Date: Wed, 19 Apr 2023 00:30:55 -0600 Subject: [PATCH] Update entrypoint.sh --- entrypoint.sh | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/entrypoint.sh b/entrypoint.sh index dfc9782..26ac537 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -6,14 +6,8 @@ echo "::group::verify-changed-files" INPUT_SEPARATOR="${INPUT_SEPARATOR//\%/%25}" INPUT_SEPARATOR="${INPUT_SEPARATOR//\./%2E}" - -NEWLINE_SEPARATOR='\n' -URLENCODED_NEWLINE_SEPARATOR='%0A' -INPUT_SEPARATOR=$(echo "$INPUT_SEPARATOR" | sed "s/${NEWLINE_SEPARATOR}/${URLENCODED_NEWLINE_SEPARATOR}/g") - -CARRIAGE_RETURN='\r' -URLENCODED_CARRIAGE_RETURN='%0D' -INPUT_SEPARATOR=$(echo "$INPUT_SEPARATOR" | sed "s/${CARRIAGE_RETURN}/${URLENCODED_CARRIAGE_RETURN}/g") +INPUT_SEPARATOR="${INPUT_SEPARATOR//\n/%0A}" +INPUT_SEPARATOR="${INPUT_SEPARATOR//\r/%0D}" echo "Separator: $INPUT_SEPARATOR"