From d7fcce2c66628dd0a8064fc0ef70d8ffba231e88 Mon Sep 17 00:00:00 2001 From: buildmaster Date: Wed, 12 Dec 2018 19:03:50 +0000 Subject: [PATCH] Sync docs from master to gh-pages --- ghpages.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ghpages.sh b/ghpages.sh index 4856e3e2..9ee39156 100644 --- a/ghpages.sh +++ b/ghpages.sh @@ -36,7 +36,10 @@ function set_default_props() { function add_oauth_token_to_remote_url() { if [[ "${RELEASER_GIT_OAUTH_TOKEN}" != "" ]]; then echo "OAuth token found. Will reuse it to push the code" - git remote set-url --push origin `git config remote.origin.url | sed -e 's/^git:/https:/' | sed -e "s|^git://|https://${RELEASER_GIT_OAUTH_TOKEN}@|"` + remote=`git config remote.origin.url | sed -e 's/^git:/https:/'` + echo "Current remote [${remote}]" + withToken=${remote/https:\/\//https://${RELEASER_GIT_OAUTH_TOKEN}@} + git remote set-url --push origin "${withToken}" else echo "No OAuth token found" git remote set-url --push origin `git config remote.origin.url | sed -e 's/^git:/https:/'`