Suppress spurious output

Suppress spurious output while testing for the presence of the virtualenv or python-virtualenv package.
This commit is contained in:
Ward Vandewege 2015-12-18 21:17:05 -05:00
parent 0c704fa7f2
commit 55d1f68c77

View file

@ -24,11 +24,11 @@ apt-get update
# distro version (#346)
virtualenv=
if apt-cache show virtualenv > /dev/null ; then
if apt-cache show virtualenv > /dev/null 2>&1; then
virtualenv="virtualenv"
fi
if apt-cache show python-virtualenv > /dev/null ; then
if apt-cache show python-virtualenv > /dev/null 2>&1; then
virtualenv="$virtualenv python-virtualenv"
fi