Do not fail on lack of secret git keys
This commit is contained in:
parent
15d7382207
commit
eead27ea4c
1 changed files with 8 additions and 1 deletions
|
@ -10,10 +10,17 @@ if [[ ! -d $DOTFILES_PATH ]]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cd "$DOTFILES_PATH"
|
cd "$DOTFILES_PATH"
|
||||||
git remote set-url origin git@github.com:cyplo/dotfiles.git
|
|
||||||
git checkout $branch
|
git checkout $branch
|
||||||
|
|
||||||
|
git remote set-url origin https://github.com/cyplo/dotfiles.git
|
||||||
git pull
|
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 NOSUDO=true
|
||||||
export DONT_CHANGE_SHELL=true
|
export DONT_CHANGE_SHELL=true
|
||||||
export NORUST=true
|
export NORUST=true
|
||||||
|
|
Loading…
Reference in a new issue