Skip to content

Commit

Permalink
Merge pull request #99 from pah/travis-ci
Browse files Browse the repository at this point in the history
travis-doxygen.sh: only overwrite .git-credentials, iff not exists
  • Loading branch information
miloyip committed Aug 11, 2014
2 parents 3b3600b + d08eb76 commit 34dd0fd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions build/travis-doxygen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -107,9 +107,9 @@ gh_pages_push() {
git remote set-url --push origin "${GITHUB_URL}"
git config credential.helper 'store'
# ( set +x ; git config credential.username "${GH_TOKEN}" )
( set +x ; \
echo "https://${GH_TOKEN}:@${GITHUB_HOST}" > ${HOME}/.git-credentials ; \
chmod go-rw ${HOME}/.git-credentials )
( set +x ; [ -f ${HOME}/.git-credentials ] || \
( echo "https://${GH_TOKEN}:@${GITHUB_HOST}" > ${HOME}/.git-credentials ; \
chmod go-rw ${HOME}/.git-credentials ) )
# push to GitHub
git push origin gh-pages
}
Expand Down

0 comments on commit 34dd0fd

Please sign in to comment.