We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6985e2e commit 146b981Copy full SHA for 146b981
Tools/wasm/emscripten/__main__.py
@@ -248,10 +248,10 @@ def configure_emscripten_python(context, working_dir):
248
249
# Macs come with FreeBSD coreutils which doesn't have the -s option
250
# so feature detect and work around it.
251
- if which grealpath > /dev/null; then
+ if which grealpath > /dev/null 2>&1; then
252
# It has brew installed gnu core utils, use that
253
REALPATH="grealpath -s"
254
- elif which realpath > /dev/null && realpath --version > /dev/null 2> /dev/null && realpath --version | grep GNU > /dev/null; then
+ elif which realpath > /dev/null 2>&1 && realpath --version > /dev/null 2>&1 && realpath --version | grep GNU > /dev/null 2>&1; then
255
# realpath points to GNU realpath so use it.
256
REALPATH="realpath -s"
257
else
0 commit comments