From 502d4f61a28a25ff82a117fc1a3351eb234a1c91 Mon Sep 17 00:00:00 2001 From: edwin170 Date: Wed, 18 Sep 2024 12:03:02 -0400 Subject: [PATCH] @Neustradamus thx --- downr1n.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/downr1n.sh b/downr1n.sh index 968e48a..024e206 100755 --- a/downr1n.sh +++ b/downr1n.sh @@ -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