]> code.ossystems Code Review - openembedded-core.git/commitdiff
eglibc-testing: Fix testing script to work well with dash
authorKhem Raj <raj.khem@gmail.com>
Fri, 2 Mar 2012 22:57:28 +0000 (14:57 -0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 3 Mar 2012 14:07:44 +0000 (14:07 +0000)
Dash did not like >& so we do 2 >& 1 > /dev/null

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-core/eglibc/eglibc-testing.inc

index c30409fb94c13a7d7eba93deadba3704ac7a3938..a5ce773bfc471e85f158c3f83b308505031b64c0 100644 (file)
@@ -47,7 +47,7 @@ then
        echo "Please specify the target machine and remote user in form of user@target"
        exit 1;
 fi
-ssh \$target ls \$PWD\ >& /dev/null
+ssh \$target ls \$PWD\  2>&1 > /dev/null
 if [ "x\$?" != "x0" ]
 then
        echo "Failed connecting to \$target it could be because of:"