From e6095ce97a71fbefcc93bb00157be57d0746a9f4 Mon Sep 17 00:00:00 2001 From: VirtuBox Date: Tue, 1 Aug 2023 18:31:40 +0200 Subject: [PATCH] Fix install script on debian 12 --- install | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/install b/install index 3778338..3c94fa1 100755 --- a/install +++ b/install @@ -438,7 +438,12 @@ wo_install() { if [ -d /usr/local/lib/python3."$python_ver"/dist-packages ]; then cd /usr/local/lib/python3."$python_ver"/dist-packages || exit 1 fi - python3 -m pip uninstall -yq wo wordops ee + if [ "$wo_distro_codename" = "bookworm" ]; then + python3 -m pip uninstall -yq wo wordops ee --break-system-packages + else + python3 -m pip uninstall -yq wo wordops ee + fi + cd || exit 1 if [ -d /opt/wo/lib/python3."$python_ver"/site-packages/apt ]; then source /opt/wo/bin/activate