We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5876063 commit d8d12b3Copy full SHA for d8d12b3
Tools/wasm/emscripten/__main__.py
@@ -223,7 +223,7 @@ def configure_emscripten_python(context, working_dir):
223
if which grealpath > /dev/null; then
224
# It has brew installed gnu core utils, use that
225
REALPATH="grealpath -s"
226
- 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
227
# realpath points to GNU realpath so use it.
228
REALPATH="realpath -s"
229
else
0 commit comments