diff options
author | Pat Ferate <pferate@users.noreply.github.com> | 2016-08-15 08:55:56 -0700 |
---|---|---|
committer | Jon Wayne Parrott <jonwayne@google.com> | 2016-08-15 08:55:56 -0700 |
commit | 9c1ece5ce4655fde6b665aaf2c2abf04a6f0a87d (patch) | |
tree | 3e3b471ad0db26756a69958e4cdffa18646801e5 | |
parent | 5137d7e8377266ef4beffe1c59c638c05c82cf10 (diff) | |
download | oauth2client-9c1ece5ce4655fde6b665aaf2c2abf04a6f0a87d.tar.gz |
Check for `bin` directory before cloning pyenv (#630)
Travis creates cached directories if they are not present, so the pyenv
repo was never getting cloned if the cache was empty.
-rwxr-xr-x | scripts/install.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/install.sh b/scripts/install.sh index 50d1e48..13b209d 100755 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -25,7 +25,7 @@ fi # Travis ships with an old version of PyPy, so install at least version 2.6. if [[ "${TOX_ENV}" == "pypy" ]]; then - if [ ! -d "${HOME}/.pyenv" ]; then + if [ ! -d "${HOME}/.pyenv/bin" ]; then git clone https://github.com/yyuu/pyenv.git ${HOME}/.pyenv fi ${HOME}/.pyenv/bin/pyenv install --skip-existing pypy-2.6.0 |