From fc30b14ccfee779571f4d1ab4669a934199bb91d Mon Sep 17 00:00:00 2001 From: poka Date: Sun, 14 Aug 2022 20:43:11 +0200 Subject: [PATCH] fix: check pyenv --- install.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/install.sh b/install.sh index 11cfb0d..c7d5540 100755 --- a/install.sh +++ b/install.sh @@ -4,8 +4,7 @@ MP="`dirname \"$0\"`" # relative MP="`( cd \"$MP\" && pwd )`" # absolutized and normalized cd $MP -if [[ ! $(which python) ]]; then - if [[ ! $(which pyenv) ]]; then +if [[ ! $(which pyenv) ]]; then echo "pyenv installation..." curl -L https://raw.githubusercontent.com/yyuu/pyenv-installer/master/bin/pyenv-installer | bash echo "export PYENV_ROOT=\"$HOME/.pyenv\"" >> $HOME/.bashrc @@ -13,8 +12,9 @@ if [[ ! $(which python) ]]; then echo "eval \"$(pyenv init -)\"" >> $HOME/.bashrc echo "Restat terminal and relaunch this install script" exit 0 - fi +fi +if [[ ! $(which python) ]]; then pyenv install 3.9.6 pyenv global 3.9.6 echo "Restat terminal and relaunch this install script again"