From 492dab8fbd4b4d206e60aae10b1ff5f86932958c Mon Sep 17 00:00:00 2001 From: hjelev Date: Sun, 20 Mar 2022 20:53:23 +0200 Subject: [PATCH] update --- install.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 3136b1b..c4f98ff 100755 --- a/install.sh +++ b/install.sh @@ -10,8 +10,10 @@ printm(){ find_python(){ if $(python --version); then python=$(which python) + pip="pip" else python=$(which python3) + pip="pip3" fi echo "$python" } @@ -32,7 +34,7 @@ check_and_install_pip(){ pip=$(${python} -m pip --version 2>&1); if [[ "$pip" == *"No"* ]]; then echo "- Pip is not installed, installing it." - sudo apt install python-pip + sudo apt install python-$pip else print_green "+ Found $pip" fi