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:
parent
d6b885b1b5
commit
54fd9ad71b
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue