Pipe only stdout to /dev/null when checking pip return code (#517)

* Piping stderr to /dev/null was a bad idea

* Piping stderr to /dev/null was a bad idea
This commit is contained in:
Daniel Markstedt 2021-12-12 16:53:08 -08:00 committed by GitHub
parent 7dce1bc3b9
commit 01bc198d4c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -69,7 +69,7 @@ fi
if test -e venv; then
GOOD_VENV=true
! test -e venv/bin/activate && GOOD_VENV=false
pip3 list &> /dev/null
pip3 list 1> /dev/null
test $? -eq 1 && GOOD_VENV=false
if ! "$GOOD_VENV"; then
echo "Deleting bad python venv"

View File

@ -35,7 +35,7 @@ fi
if test -e venv; then
GOOD_VENV=true
! test -e venv/bin/activate && GOOD_VENV=false
pip3 list &> /dev/null
pip3 list 1> /dev/null
test $? -eq 1 && GOOD_VENV=false
if ! "$GOOD_VENV"; then
echo "Deleting bad python venv"