From d3b88ec6320348f564d9ce80f999e2a13b401be0 Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Fri, 2 Mar 2012 14:54:25 -0800 Subject: 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 Signed-off-by: Richard Purdie --- meta/recipes-devtools/gcc/gcc-cross.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'meta') diff --git a/meta/recipes-devtools/gcc/gcc-cross.inc b/meta/recipes-devtools/gcc/gcc-cross.inc index b16c57d399..e7a5e41be8 100644 --- a/meta/recipes-devtools/gcc/gcc-cross.inc +++ b/meta/recipes-devtools/gcc/gcc-cross.inc @@ -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" -- cgit v1.2.3-54-g00ecf