File tree Expand file tree Collapse file tree 1 file changed +14
-4
lines changed Expand file tree Collapse file tree 1 file changed +14
-4
lines changed Original file line number Diff line number Diff line change 23
23
fi
24
24
25
25
echo " Installing Pyenv"
26
- git clone https://github.com/pyenv/pyenv.git ~ /.pyenv
27
- echo ' export PYENV_ROOT="${HOME}/.pyenv"' >> ~ /.bashrc
28
- echo ' export PATH="${PYENV_ROOT}/bin:${PATH}"' >> ~ /.bashrc
29
- git clone https://github.com/pyenv/pyenv-virtualenv.git ${HOME} /.pyenv/plugins/pyenv-virtualenv
26
+ if [ ! -d " ${HOME} /.pyenv" ] && [ -n " ${PYENV_ROOT-} " ]; then
27
+ git clone https://github.com/pyenv/pyenv.git ${HOME} /.pyenv
28
+ echo ' export PYENV_ROOT="${HOME}/.pyenv"' >> ${HOME} /.bashrc
29
+ echo ' export PATH="${PYENV_ROOT}/bin:${PATH}"' >> ${HOME} /.bashrc
30
+ else
31
+ echo " Pyenv is already installed"
32
+ fi
33
+
34
+ echo " Installing Pyenv virtualenv plugin"
35
+ if [ ! -d " ${HOME} /.pyenv/plugins/pyenv-virtualenv" ]; then
36
+ git clone https://github.com/pyenv/pyenv-virtualenv.git ${HOME} /.pyenv/plugins/pyenv-virtualenv
37
+ else
38
+ echo " Pyenv virtualenv plugin is already installed"
39
+ fi
30
40
31
41
echo " Installing Pyenv's dependencies"
32
42
if [[ ! -z $( which yum) ]]; then
You can’t perform that action at this time.
0 commit comments