Do not fail on lack of secret git keys

This commit is contained in:
Cyryl Płotnicki 2016-11-01 18:24:18 +01:00 committed by GitHub
parent 15d7382207
commit eead27ea4c

View file

@ -10,10 +10,17 @@ if [[ ! -d $DOTFILES_PATH ]]; then
fi
cd "$DOTFILES_PATH"
git remote set-url origin git@github.com:cyplo/dotfiles.git
git checkout $branch
git remote set-url origin https://github.com/cyplo/dotfiles.git
git pull
git remote set-url origin git@github.com:cyplo/dotfiles.git
# might fail on CI where there are no secret keys
set +e
git pull
set -e
export NOSUDO=true
export DONT_CHANGE_SHELL=true
export NORUST=true