mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
Redirect stderr to /dev/null
We already redirect stdout, but the problem is that (at least on Windows/MSYS2), the `which` command tends to output things to stderr when failing: ``` $ ./mach build -d which: no python2.7 in (/usr/local/bin:/usr/bin:/bin:/opt/bin:/c/Windows/System32:/c/Windows:/c/Windows/System32/Wbem:/c/Windows/System32/WindowsPowerShell/v1.0/:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:/c/Program Files/Java/jdk1.8.0_66/bin:/c/Python27:/c/Python27/Scripts) ``` This PR silences this noise.
This commit is contained in:
parent
aa9f50a1d4
commit
347b7bb51d
1 changed files with 1 additions and 1 deletions
2
mach
2
mach
|
@ -6,7 +6,7 @@
|
|||
# The beginning of this script is both valid shell and valid python,
|
||||
# such that the script starts with the shell and is reexecuted with
|
||||
# the right python.
|
||||
'''which' python2.7 > /dev/null && exec python2.7 "$0" "$@" || exec python "$0" "$@"
|
||||
'''which' python2.7 > /dev/null 2> /dev/null && exec python2.7 "$0" "$@" || exec python "$0" "$@"
|
||||
'''
|
||||
|
||||
from __future__ import print_function, unicode_literals
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue