Fix install

This commit is contained in:
VirtuBox 2020-10-29 15:00:35 +01:00
parent 5d8e2f0fc8
commit 4735696ef1
Signed by: virtubox
GPG Key ID: 22EB296C97BAD476
1 changed files with 1 additions and 2 deletions

View File

@ -476,10 +476,9 @@ wo_install() {
rm -rf /usr/local/bin/wo /usr/local/lib/python3."$python_venv"/dist-packages/{etc,usr}
ln -s /opt/wo/bin/wo /usr/local/bin/
deactivate
if ! { /usr/local/bin/wo >/dev/null 2>&1; }; then
if [ ! -d /opt/wo/lib/python3."$python_ver"/site-packages/apt ];then
python3 -m venv --system-site-packages /opt/wo
fi
}
# Clone Github repository if it doesn't exist