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:
Khem Raj
2012-03-02 14:54:25 -08:00
committed by Richard Purdie
parent b6d744ad18
commit d3b88ec632

View File

@@ -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"