@Neustradamus thx
This commit is contained in:
parent
6cb0696e7e
commit
502d4f61a2
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue