[oe-commits] Khem Raj : gcc-cross.inc: Fix cross testing scripts to work with dash

git at git.openembedded.org git at git.openembedded.org
Sun Mar 4 04:17:19 UTC 2012


Module: openembedded-core.git
Branch: master
Commit: 1d262630853e65be9167d904b934b581acf64182
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=1d262630853e65be9167d904b934b581acf64182

Author: Khem Raj <raj.khem at gmail.com>
Date:   Fri Mar  2 14:54:25 2012 -0800

gcc-cross.inc: Fix cross testing scripts to work with dash

dash does not like >& so be explicit and say 2>&1

Signed-off-by: Khem Raj <raj.khem at gmail.com>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>

---

 meta/recipes-devtools/gcc/gcc-cross.inc |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/meta/recipes-devtools/gcc/gcc-cross.inc b/meta/recipes-devtools/gcc/gcc-cross.inc
index b16c57d..e7a5e41 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"





More information about the Openembedded-commits mailing list