Do not fail on CI when not on the branch

Helpful for AppVeyor's non-branch checkouts
This commit is contained in:
Cyryl Płotnicki 2016-11-04 07:48:38 +01:00 committed by GitHub
parent 6d5b95e1d3
commit 3b3a393829

View file

@ -13,7 +13,9 @@ cd "$DOTFILES_PATH"
git remote set-url origin https://github.com/cyplo/dotfiles.git git remote set-url origin https://github.com/cyplo/dotfiles.git
git fetch -p git fetch -p
git checkout $branch git checkout $branch
set +e
git pull git pull
set -e
git remote set-url origin git@github.com:cyplo/dotfiles.git git remote set-url origin git@github.com:cyplo/dotfiles.git
# might fail on CI where there are no secret keys # might fail on CI where there are no secret keys
set +e set +e