fix: check pyenv
This commit is contained in:
parent
21da403552
commit
fc30b14ccf
|
@ -4,7 +4,6 @@ MP="`dirname \"$0\"`" # relative
|
||||||
MP="`( cd \"$MP\" && pwd )`" # absolutized and normalized
|
MP="`( cd \"$MP\" && pwd )`" # absolutized and normalized
|
||||||
cd $MP
|
cd $MP
|
||||||
|
|
||||||
if [[ ! $(which python) ]]; then
|
|
||||||
if [[ ! $(which pyenv) ]]; then
|
if [[ ! $(which pyenv) ]]; then
|
||||||
echo "pyenv installation..."
|
echo "pyenv installation..."
|
||||||
curl -L https://raw.githubusercontent.com/yyuu/pyenv-installer/master/bin/pyenv-installer | bash
|
curl -L https://raw.githubusercontent.com/yyuu/pyenv-installer/master/bin/pyenv-installer | bash
|
||||||
|
@ -15,6 +14,7 @@ if [[ ! $(which python) ]]; then
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [[ ! $(which python) ]]; then
|
||||||
pyenv install 3.9.6
|
pyenv install 3.9.6
|
||||||
pyenv global 3.9.6
|
pyenv global 3.9.6
|
||||||
echo "Restat terminal and relaunch this install script again"
|
echo "Restat terminal and relaunch this install script again"
|
||||||
|
|
Loading…
Reference in New Issue