Skip to content

Commit

Permalink
Update entrypoint.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
jackton1 authored Apr 19, 2023
1 parent 0591269 commit 5c103de
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down

0 comments on commit 5c103de

Please sign in to comment.