Skip to content

Commit

Permalink
approvals.bash: Ignore trailing CR & whitespace
Browse files Browse the repository at this point in the history
Signed-off-by: Filip Gołaś <[email protected]>
  • Loading branch information
philipandag committed Oct 15, 2024
1 parent 7d4717c commit 7e4982c
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions test/approvals.bash
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,8 @@ approve() {
return
fi

<<<<<<< HEAD
if [[ "$(printf "%b" "$actual")" = "$(printf "%b" "$expected")" ]]; then
=======
$diff_cmd <(printf "%b" "$expected\n") <(printf "%b" "$actual\n") &> /dev/null && true
if [[ $? == 0 ]]; then
>>>>>>> dd9111f1f354 (ci fixes)
pass "$cmd"
else
printf -- "$changed_diff_string\n" "$cmd"
Expand Down

0 comments on commit 7e4982c

Please sign in to comment.