diff options
author | Khem Raj <raj.khem@gmail.com> | 2012-02-04 11:01:58 -0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-02-08 00:50:29 +0000 |
commit | 54fd9ad71b70cf823be702b980459980bcb05de6 (patch) | |
tree | 058a9cfa399a80e9a7b4bf628022aeb573970176 | |
parent | d6b885b1b5299d2c0c539f552bafc53569bbc2d3 (diff) | |
download | 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>
-rw-r--r-- | meta/recipes-devtools/gcc/gcc-cross.inc | 6 |
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 6acf8c5848..b16c57d399 100644 --- a/meta/recipes-devtools/gcc/gcc-cross.inc +++ b/meta/recipes-devtools/gcc/gcc-cross.inc | |||
@@ -65,11 +65,11 @@ then | |||
65 | exit 1; | 65 | exit 1; |
66 | fi | 66 | fi |
67 | 67 | ||
68 | echo "\$target" | grep −q "@" >& /dev/null | 68 | echo "\$target" | grep "@" >& /dev/null |
69 | if [ "x\$?" = "x0" ] | 69 | if [ "x\$?" = "x0" ] |
70 | then | 70 | then |
71 | user=echo \$target | cut -d '@' -f 1 | 71 | user=\$(echo \$target | cut -d '@' -f 1) |
72 | target=echo \$target | cut -d '@' -f 2 | 72 | target=\$(echo \$target | cut -d '@' -f 2) |
73 | else | 73 | else |
74 | user=\$USER | 74 | user=\$USER |
75 | fi | 75 | fi |