* [PATCH] toolchain-shar-extract.sh: don't print useless info
@ 2020-10-16 2:40 Changqing Li
0 siblings, 0 replies; only message in thread
From: Changqing Li @ 2020-10-16 2:40 UTC (permalink / raw)
To: openembedded-core; +Cc: Changqing Li
useless info "gcc: command not found" is printed when run
buildtools-extended on system without gcc.
Signed-off-by: Changqing Li <changqing.li@windriver.com>
---
| 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--git a/meta/files/toolchain-shar-extract.sh b/meta/files/toolchain-shar-extract.sh
index 04527f891f..bea6d4189a 100644
--- a/meta/files/toolchain-shar-extract.sh
+++ b/meta/files/toolchain-shar-extract.sh
@@ -26,7 +26,7 @@ tweakpath /sbin
INST_ARCH=$(uname -m | sed -e "s/i[3-6]86/ix86/" -e "s/x86[-_]64/x86_64/")
SDK_ARCH=$(echo @SDK_ARCH@ | sed -e "s/i[3-6]86/ix86/" -e "s/x86[-_]64/x86_64/")
-INST_GCC_VER=$(gcc --version | sed -ne 's/.* \([0-9]\+\.[0-9]\+\)\.[0-9]\+.*/\1/p')
+INST_GCC_VER=$(gcc --version 2>/dev/null | sed -ne 's/.* \([0-9]\+\.[0-9]\+\)\.[0-9]\+.*/\1/p')
SDK_GCC_VER='@SDK_GCC_VER@'
verlte () {
--
2.17.1
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2020-10-16 2:41 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-10-16 2:40 [PATCH] toolchain-shar-extract.sh: don't print useless info Changqing Li
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox