Skip to content

Commit

Permalink
pythongh-127503: Fix realpath handling in emscripten cli (python#127632)
Browse files Browse the repository at this point in the history
Corrects the handling of realpath on Linux.
  • Loading branch information
hoodmane authored Dec 9, 2024
1 parent 5876063 commit d8d12b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Tools/wasm/emscripten/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ def configure_emscripten_python(context, working_dir):
if which grealpath > /dev/null; then
# It has brew installed gnu core utils, use that
REALPATH="grealpath -s"
elif which realpath > /dev/null && realpath --version 2&>1 | grep GNU > /dev/null; then
elif which realpath > /dev/null && realpath --version > /dev/null 2> /dev/null && realpath --version | grep GNU > /dev/null; then
# realpath points to GNU realpath so use it.
REALPATH="realpath -s"
else
Expand Down

0 comments on commit d8d12b3

Please sign in to comment.