summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2012-02-04 11:01:58 -0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-02-08 00:50:29 +0000
commit54fd9ad71b70cf823be702b980459980bcb05de6 (patch)
tree058a9cfa399a80e9a7b4bf628022aeb573970176 /meta
parentd6b885b1b5299d2c0c539f552bafc53569bbc2d3 (diff)
downloadast2050-yocto-poky-54fd9ad71b70cf823be702b980459980bcb05de6.zip
ast2050-yocto-poky-54fd9ad71b70cf823be702b980459980bcb05de6.tar.gz
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 <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/recipes-devtools/gcc/gcc-cross.inc6
1 files changed, 3 insertions, 3 deletions
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
OpenPOWER on IntegriCloud