[coreboot-gerrit] Change in coreboot[master]: buildgcc: Hide stderr output of getopt test
Nico Huber (Code Review)
gerrit at coreboot.org
Tue Dec 5 22:07:30 CET 2017
Nico Huber has uploaded this change for review. ( https://review.coreboot.org/22738
Change subject: buildgcc: Hide stderr output of getopt test
......................................................................
buildgcc: Hide stderr output of getopt test
Change-Id: I03c38de3a3b88d569d629be7483eb53164cf136a
Signed-off-by: Nico Huber <nico.h at gmx.de>
---
M util/crossgcc/buildgcc
1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/38/22738/1
diff --git a/util/crossgcc/buildgcc b/util/crossgcc/buildgcc
index 780d87a..76ed1be 100755
--- a/util/crossgcc/buildgcc
+++ b/util/crossgcc/buildgcc
@@ -899,7 +899,7 @@
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 -- "$@")
--
To view, visit https://review.coreboot.org/22738
To unsubscribe, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I03c38de3a3b88d569d629be7483eb53164cf136a
Gerrit-Change-Number: 22738
Gerrit-PatchSet: 1
Gerrit-Owner: Nico Huber <nico.h at gmx.de>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.coreboot.org/pipermail/coreboot-gerrit/attachments/20171205/ab7d476b/attachment.html>
More information about the coreboot-gerrit
mailing list