mirror of
https://git.yoctoproject.org/poky
synced 2026-04-20 09:32:13 +02:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user