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)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 8 Feb 2012 00:50:29 +0000 (00:50 +0000)
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>
meta/recipes-devtools/gcc/gcc-cross.inc

index 6acf8c5..b16c57d 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