From: Khem Raj Date: Sat, 4 Feb 2012 19:01:58 +0000 (-0800) Subject: gcc-cross-testing: Fix evaluation of user and target name X-Git-Tag: yocto-4.0~38172 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9c575b5f37ee53eaf26bfdc468d4cbb661db703f;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git gcc-cross-testing: Fix evaluation of user and target name Dont use -q to grep we pipe to /dev/null anyway all we care is the return status of grep Signed-off-by: Khem Raj --- diff --git a/meta/recipes-devtools/gcc/gcc-cross.inc b/meta/recipes-devtools/gcc/gcc-cross.inc index 6acf8c58489..b16c57d399f 100644 --- a/meta/recipes-devtools/gcc/gcc-cross.inc +++ b/meta/recipes-devtools/gcc/gcc-cross.inc @@ -65,11 +65,11 @@ then exit 1; fi -echo "\$target" | grep −q "@" >& /dev/null +echo "\$target" | grep "@" >& /dev/null if [ "x\$?" = "x0" ] then - user=echo \$target | cut -d '@' -f 1 - target=echo \$target | cut -d '@' -f 2 + user=\$(echo \$target | cut -d '@' -f 1) + target=\$(echo \$target | cut -d '@' -f 2) else user=\$USER fi