pip list --outdated | grep -q pytest
if [ $? -eq 0 ]; then # match found
  pip install --upgrade pytest
fi
pip install --upgrade pytest


pip list --outdated | grep -q pytest
if [ $? -eq 0 ]; then # match found
  echo "Upgrading pytest"
  pip install --upgrade pytest
else
  echo "Not upgrading pytest"
fi


Fix duplicate pip calls and add echoing
Fix duplicate pip calls and add echoing
