Skip to content

Commit d8d12b3

Browse files
authored
gh-127503: Fix realpath handling in emscripten cli (#127632)
Corrects the handling of realpath on Linux.
1 parent 5876063 commit d8d12b3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Tools/wasm/emscripten/__main__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ def configure_emscripten_python(context, working_dir):
223223
if which grealpath > /dev/null; then
224224
# It has brew installed gnu core utils, use that
225225
REALPATH="grealpath -s"
226-
elif which realpath > /dev/null && realpath --version 2&>1 | grep GNU > /dev/null; then
226+
elif which realpath > /dev/null && realpath --version > /dev/null 2> /dev/null && realpath --version | grep GNU > /dev/null; then
227227
# realpath points to GNU realpath so use it.
228228
REALPATH="realpath -s"
229229
else

0 commit comments

Comments
 (0)