Skip to content

Commit 02d9ac6

Browse files
committed
unix: use perl for replacing CRLF
CI is still not working as expected. Maybe it is a macOS 10.15 versus 11.1 difference. I dunno. Anyway, let's give up on sed and use perl.
1 parent d660c06 commit 02d9ac6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cpython-unix/build-cpython.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -588,9 +588,9 @@ pushd ${ROOT}/pip-${PIP_VERSION}
588588
# Let's fix that.
589589

590590
if [ "${PYBUILD_PLATFORM}" = "macos" ]; then
591-
find . -name '*.py' | xargs sed -i '' 's/\r$//g'
591+
find . -name '*.py' -exec perl -i -pe 's/\R/\n/g' {} \;
592592
else
593-
find . -name '*.py' | xargs sed -i 's/\r$//g'
593+
find . -name '*.py' -exec sed -i 's/\r$//g' {} \;
594594
fi
595595

596596
patch -p1 <<EOF

0 commit comments

Comments
 (0)