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"