diff options
author | Nico Huber <nico.h@gmx.de> | 2017-12-05 22:02:21 +0100 |
---|---|---|
committer | Nico Huber <nico.h@gmx.de> | 2017-12-07 21:56:44 +0000 |
commit | 27e8412b4a6909f1c79ad057fa65f11fb7b5bf53 (patch) | |
tree | 9bb7e32d8c085c622e09e6ee4d6e5ca693b8be5a /util/crossgcc/buildgcc | |
parent | 4792689f67ab9d8c5c5ef20febe41224560a2eeb (diff) |
buildgcc: Hide stderr output of getopt test
Change-Id: I03c38de3a3b88d569d629be7483eb53164cf136a
Signed-off-by: Nico Huber <nico.h@gmx.de>
Reviewed-on: https://review.coreboot.org/22738
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
Diffstat (limited to 'util/crossgcc/buildgcc')
-rwxr-xr-x | util/crossgcc/buildgcc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/util/crossgcc/buildgcc b/util/crossgcc/buildgcc index 780d87a165..76ed1be9bf 100755 --- a/util/crossgcc/buildgcc +++ b/util/crossgcc/buildgcc @@ -899,7 +899,7 @@ export PATH=$PATH:. getopt - > /dev/null 2>/dev/null || gcc -o getopt getopt.c # parse parameters.. try to find out whether we're running GNU getopt -getoptbrand="$(getopt -V | sed -e '1!d' -e 's,^\(......\).*,\1,')" +getoptbrand="$(getopt -V 2>/dev/null | sed -e '1!d' -e 's,^\(......\).*,\1,')" if [ "${getoptbrand}" = "getopt" ]; then # Detected GNU getopt that supports long options. args=$(getopt -l version,help,clean,directory:,bootstrap,bootstrap-only,platform:,languages:,package:,jobs:,destdir:,savetemps,scripting,ccache,supported:,urls,nocolor -o Vhcd:bBp:l:P:j:D:tSys:un -- "$@") |