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>
This commit is contained in:
Khem Raj 2012-02-04 11:01:58 -08:00 committed by Richard Purdie
parent d6b885b1b5
commit 54fd9ad71b
1 changed files with 3 additions and 3 deletions

View 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