From adb5199b548060496e12d60a24908fd246344f72 Mon Sep 17 00:00:00 2001 From: Dustin Born Date: Mon, 29 Apr 2024 13:14:22 +0200 Subject: [PATCH] Fix install if --break-system-packages is n/a --- install.sh | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/install.sh b/install.sh index 95a9bcd..a9b485d 100755 --- a/install.sh +++ b/install.sh @@ -34,8 +34,15 @@ install_linux_packages() { exit 1 fi - pip3 install -r requirements.txt --break-system-packages - pip3 install mariadb --break-system-packages + pip3 install -r requirements.txt + if [ $? != 0 ]; then + pip3 install -r requirements.txt --break-system-packages + fi + + pip3 install mariadb + if [ $? != 0 ]; then + pip3 install mariadb --break-system-packages + fi } setup_create_db() { @@ -113,7 +120,10 @@ setup_cpe_search() { git submodule --quiet update fi - pip3 install -r requirements.txt --break-system-packages + pip3 install -r requirements.txt + if [ $? != 0 ]; then + pip3 install -r requirements.txt --break-system-packages + fi cd .. }