]> code.ossystems Code Review - openembedded-core.git/commitdiff
gcc-cross-testing: Fix evaluation of user and target name
authorKhem Raj <raj.khem@gmail.com>
Sat, 4 Feb 2012 19:01:58 +0000 (11:01 -0800)
committerSaul Wold <sgw@linux.intel.com>
Tue, 7 Feb 2012 23:05:42 +0000 (15:05 -0800)
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>
meta/recipes-devtools/gcc/gcc-cross.inc

index 6acf8c5848936c7ae0c264348185c48674d78f5e..b16c57d399f253a9636ddc39c60f63f65ec1dd23 100644 (file)
@@ -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