mirror of
https://git.yoctoproject.org/poky
synced 2026-04-29 09:32:11 +02:00
gcc-cross.inc: Fix cross testing scripts to work with dash
dash does not like >& so be explicit and say 2>&1 (From OE-Core rev: 1d262630853e65be9167d904b934b581acf64182) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
@@ -65,7 +65,7 @@ then
|
||||
exit 1;
|
||||
fi
|
||||
|
||||
echo "\$target" | grep "@" >& /dev/null
|
||||
echo "\$target" | grep "@" 2>&1 > /dev/null
|
||||
if [ "x\$?" = "x0" ]
|
||||
then
|
||||
user=\$(echo \$target | cut -d '@' -f 1)
|
||||
@@ -73,7 +73,7 @@ then
|
||||
else
|
||||
user=\$USER
|
||||
fi
|
||||
ssh \$user@\$target date >& /dev/null
|
||||
ssh \$user@\$target date 2>&1 > /dev/null
|
||||
if [ "x\$?" != "x0" ]
|
||||
then
|
||||
echo "Failed connecting to \$user@\$target it could be because"
|
||||
|
||||
Reference in New Issue
Block a user