@Neustradamus thx

This commit is contained in:
edwin170 2024-09-18 12:03:02 -04:00
parent 6cb0696e7e
commit 502d4f61a2

View file

@ -529,11 +529,11 @@ check_and_install_package() {
if [ -z "$required_version" ]; then
printr "[-] No version specified for $package. Installing the latest version."
python3 -m pip install "$package"
python3 -m pip install "$package" --break-system-packages
elif [ "$installed_version" != "$required_version" ]; then
printr "[-] $package version $required_version is not installed (current version: $installed_version). We can install it for you. Press any key to start installing $package $required_version, or press Ctrl + C to cancel."
read -n 1 -s
python3 -m pip install "$package==$required_version"
python3 -m pip install "$package==$required_version" --break-system-packages
else
echo "[+] $package version $required_version is already installed."
fi