From 6911bfe4f798e206790d5cfe8cd49398647dccee Mon Sep 17 00:00:00 2001 From: Hristo Jelev Date: Tue, 19 Dec 2023 18:43:55 +0200 Subject: [PATCH] fix python installation --- install.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/install.sh b/install.sh index 5967e3e..4d3ed65 100755 --- a/install.sh +++ b/install.sh @@ -10,14 +10,14 @@ welcome(){ } find_python(){ - if [[ $(python --version) ]]; then - python=$(which python) - pip="python-pip" - pip_run='pip' - else + if [[ $(python3 --version) ]]; then python=$(which python3) pip="python3-pip" pip_run='pip3' + else + python=$(which python) + pip="python-pip" + pip_run='pip' fi if [[ "$python" == *"python"* ]]; then