From 26684841632c8697d717ac66a91535c79a7f03ab Mon Sep 17 00:00:00 2001 From: Bob Lantz Date: Wed, 29 Jun 2011 19:31:45 -0700 Subject: [PATCH] Avoid printing out grep results. --- util/install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/install.sh b/util/install.sh index 7eedd09..0d0c13e 100755 --- a/util/install.sh +++ b/util/install.sh @@ -84,7 +84,7 @@ function mn_deps { sudo aptitude install -y gcc make screen psmisc xterm ssh iperf iproute \ python-setuptools python-networkx - if [ "$DIST" = "Ubuntu" ] && grep '10.04' /etc/*release*; then + if [ "$DIST" = "Ubuntu" ] && [ "`lsb_release -sr`" = "10.04" ]; then echo "Upgrading networkx to avoid deprecation warning" sudo easy_install --upgrade networkx fi