aboutsummaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/gcc/gcc-cross.inc
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2012-02-04 11:01:58 -0800
committerSaul Wold <sgw@linux.intel.com>2012-02-07 15:05:42 -0800
commit9c575b5f37ee53eaf26bfdc468d4cbb661db703f (patch)
tree0a97ebd3f5ffc6b50c4acbd2882f4d95ae00ab94 /meta/recipes-devtools/gcc/gcc-cross.inc
parentb14a92f4450bb08b9f11d3fd7a99155315527cdd (diff)
downloadopenembedded-core-contrib-9c575b5f37ee53eaf26bfdc468d4cbb661db703f.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 Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta/recipes-devtools/gcc/gcc-cross.inc')
-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 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