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: 2015-4~11791 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=9c575b5f37ee53eaf26bfdc468d4cbb661db703f;p=openembedded-core.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 6acf8c5848..b16c57d399 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