Avoid printing out grep results.

This commit is contained in:
Bob Lantz
2011-06-29 19:31:45 -07:00
parent 7596de5903
commit 2668484163
+1 -1
View File
@@ -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