From 3b3a39382941f2e42c704e7bbbc1828e0e727afe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cyryl=20P=C5=82otnicki?= Date: Fri, 4 Nov 2016 07:48:38 +0100 Subject: [PATCH] Do not fail on CI when not on the branch Helpful for AppVeyor's non-branch checkouts --- windows/build_insider.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/windows/build_insider.sh b/windows/build_insider.sh index 118a6739..2d6bc0f1 100644 --- a/windows/build_insider.sh +++ b/windows/build_insider.sh @@ -13,7 +13,9 @@ cd "$DOTFILES_PATH" git remote set-url origin https://github.com/cyplo/dotfiles.git git fetch -p git checkout $branch +set +e git pull +set -e git remote set-url origin git@github.com:cyplo/dotfiles.git # might fail on CI where there are no secret keys set +e