Do not fail on CI when not on the branch
Helpful for AppVeyor's non-branch checkouts
This commit is contained in:
parent
6d5b95e1d3
commit
3b3a393829
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue