diff options
-rwxr-xr-x | .travis/install.sh | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/.travis/install.sh b/.travis/install.sh index b0031fe..c135d32 100755 --- a/.travis/install.sh +++ b/.travis/install.sh @@ -4,12 +4,15 @@ set -e set -x if [[ $TRAVIS_OS_NAME == 'osx' ]]; then - if [ ! -e "$HOME/.pyenv" ]; then - git clone https://github.com/yyuu/pyenv.git ~/.pyenv + if [ ! -e "$HOME/.pyenv-simplejson/.git" ]; then + if [ -e "$HOME/.pyenv-simplejson" ]; then + rm -rf ~/.pyenv-simplejson + fi + git clone https://github.com/yyuu/pyenv.git ~/.pyenv-simplejson else - (cd ~/.pyenv; git pull) + (cd ~/.pyenv-simplejson; git pull) fi - PYENV_ROOT="$HOME/.pyenv" + PYENV_ROOT="$HOME/.pyenv-simplejson" PATH="$PYENV_ROOT/bin:$PATH" eval "$(pyenv init -)" hash -r |