fix python installation

This commit is contained in:
Hristo Jelev
2023-12-19 18:43:55 +02:00
parent edbede9251
commit 6911bfe4f7

View File

@@ -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