Added empty password for token

This commit is contained in:
Marcin Grzejszczak
2019-06-28 14:34:35 +02:00
parent f068c529d5
commit ea3ab78228
2 changed files with 9 additions and 9 deletions

View File

@@ -48,7 +48,7 @@ function add_oauth_token_to_remote_url() {
echo "Remote with [.git] suffix: [${remote}]"
fi
if [[ "${RELEASER_GIT_OAUTH_TOKEN}" != "" && ${remote} != *"@"* ]]; then
withToken=${remote/https:\/\//https://${RELEASER_GIT_OAUTH_TOKEN}@}
withToken=${remote/https:\/\//https://${RELEASER_GIT_OAUTH_TOKEN}:@}
echo "OAuth token found. Will reuse it to push the code to [${withToken}]"
"${GIT_BIN}" remote set-url --push origin "${withToken}"
else