install: add option to avoid y/n prompt when uninstalling core during post install script

This commit is contained in:
Blake Harnden 2022-07-29 14:03:45 -07:00
parent d06659ff82
commit a201fd2903

View file

@ -5,9 +5,9 @@ fi
PYTHON="${PYTHON:=python3}"
if [ -v NO_VENV ]; then
${PYTHON} -m pip uninstall core
${PYTHON} -m pip uninstall -y core
else
${PYTHON} -m venv /opt/core/venv
. /opt/core/venv/bin/activate
pip uninstall core
pip uninstall -y core
fi