Skip to content

Commit

Permalink
gh-127503: Fix realpath handling in emscripten cli
Browse files Browse the repository at this point in the history
  • Loading branch information
hoodmane committed Dec 5, 2024
1 parent 6cf7794 commit 73fe44b
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 73fe44b

Please sign in to comment.