Skip to content

Commit

Permalink
Fix install if --break-system-packages is n/a
Browse files Browse the repository at this point in the history
  • Loading branch information
ra1nb0rn committed Apr 29, 2024
1 parent 2862cb9 commit adb5199
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down Expand Up @@ -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 ..
}
Expand Down

0 comments on commit adb5199

Please sign in to comment.