diff options
author | Khem Raj <raj.khem@gmail.com> | 2012-03-02 14:54:25 -0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-03-04 05:41:10 -0800 |
commit | d3b88ec6320348f564d9ce80f999e2a13b401be0 (patch) | |
tree | 6fc8bd5df0e8bb1bc24704fb2fc9d01747337d05 /meta | |
parent | b6d744ad1885a0a7d102b1d9f4f67bdb171ab203 (diff) | |
download | poky-d3b88ec6320348f564d9ce80f999e2a13b401be0.tar.gz |
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>
Diffstat (limited to 'meta')
-rw-r--r-- | 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 b16c57d399..e7a5e41be8 100644 --- a/meta/recipes-devtools/gcc/gcc-cross.inc +++ b/meta/recipes-devtools/gcc/gcc-cross.inc | |||
@@ -65,7 +65,7 @@ then | |||
65 | exit 1; | 65 | exit 1; |
66 | fi | 66 | fi |
67 | 67 | ||
68 | echo "\$target" | grep "@" >& /dev/null | 68 | echo "\$target" | grep "@" 2>&1 > /dev/null |
69 | if [ "x\$?" = "x0" ] | 69 | if [ "x\$?" = "x0" ] |
70 | then | 70 | then |
71 | user=\$(echo \$target | cut -d '@' -f 1) | 71 | user=\$(echo \$target | cut -d '@' -f 1) |
@@ -73,7 +73,7 @@ then | |||
73 | else | 73 | else |
74 | user=\$USER | 74 | user=\$USER |
75 | fi | 75 | fi |
76 | ssh \$user@\$target date >& /dev/null | 76 | ssh \$user@\$target date 2>&1 > /dev/null |
77 | if [ "x\$?" != "x0" ] | 77 | if [ "x\$?" != "x0" ] |
78 | then | 78 | then |
79 | echo "Failed connecting to \$user@\$target it could be because" | 79 | echo "Failed connecting to \$user@\$target it could be because" |