install: add option to avoid y/n prompt when uninstalling core during post install script
This commit is contained in:
parent
d06659ff82
commit
a201fd2903
1 changed files with 2 additions and 2 deletions
|
@ -5,9 +5,9 @@ fi
|
||||||
|
|
||||||
PYTHON="${PYTHON:=python3}"
|
PYTHON="${PYTHON:=python3}"
|
||||||
if [ -v NO_VENV ]; then
|
if [ -v NO_VENV ]; then
|
||||||
${PYTHON} -m pip uninstall core
|
${PYTHON} -m pip uninstall -y core
|
||||||
else
|
else
|
||||||
${PYTHON} -m venv /opt/core/venv
|
${PYTHON} -m venv /opt/core/venv
|
||||||
. /opt/core/venv/bin/activate
|
. /opt/core/venv/bin/activate
|
||||||
pip uninstall core
|
pip uninstall -y core
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue