[oe-commits] Khem Raj : gcc-cross-testing: Fix evaluation of user and target name
git at git.openembedded.org
git at git.openembedded.org
Wed Feb 8 00:50:06 UTC 2012
Module: openembedded-core.git
Branch: master
Commit: 9c575b5f37ee53eaf26bfdc468d4cbb661db703f
URL: http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=9c575b5f37ee53eaf26bfdc468d4cbb661db703f
Author: Khem Raj <raj.khem at gmail.com>
Date: Sat Feb 4 11:01:58 2012 -0800
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 at gmail.com>
---
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 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
More information about the Openembedded-commits
mailing list