From 3546d12fe050440a2942e7bec5865180369b4121 Mon Sep 17 00:00:00 2001
From: Erik Alexandre Pucci <eap08@c3sl.ufpr.br>
Date: Mon, 28 Feb 2011 17:56:09 -0300
Subject: [PATCH] common.sh: Changed output redirection for standard reasons

Signed-off-by: Erik Alexandre Pucci <eap08@c3sl.ufpr.br>
---
 common.sh | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/common.sh b/common.sh
index 899af77..6c84cd8 100644
--- a/common.sh
+++ b/common.sh
@@ -58,7 +58,7 @@ function tryWget(){
         PROXY="http://${phost}:${pport}"
     fi
 
-    if which wget &>/dev/null; then
+    if which wget &> /dev/null; then
         WGETBIN="$(which wget)"
     else
         WGETBIN="${PREFIX}/bin/wget"
@@ -82,8 +82,8 @@ function getNetworkInterface()
 
     for interface in $(/sbin/route | grep default | awk '{print $NF}'); do
         # Send ICMP ECHO_REQUEST to root server I or J
-        if ping -c 1 -I ${interface} 192.36.148.17 > /dev/null 2>&1 ||
-           ping -c 1 -I ${interface} 192.58.128.30 > /dev/null 2>&1 ; then
+        if ping -c 1 -I ${interface} 192.36.148.17 &> /dev/null ||
+           ping -c 1 -I ${interface} 192.58.128.30 &> /dev/null ; then
             break
         fi
     done
-- 
GitLab