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: rev_ivi_2015_02_04~18774 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4751d5deb1197bd217341467d7fcdfc39e8d0b71;p=scm%2Fbb%2Ftizen-distro.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 (From OE-Core rev: 9c575b5f37ee53eaf26bfdc468d4cbb661db703f) Signed-off-by: Khem Raj Signed-off-by: Richard Purdie --- diff --git a/meta/recipes-devtools/gcc/gcc-cross.inc b/meta/recipes-devtools/gcc/gcc-cross.inc index 6acf8c5..b16c57d 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