diff --git a/tools/push-all.sh b/tools/push-all.sh index 14d7bda..74b294b 100755 --- a/tools/push-all.sh +++ b/tools/push-all.sh @@ -29,8 +29,8 @@ IMAGE="$HOST/$USER/$REPO" cd "$(dirname "$0")/.." # ---------- 1. 推代码 ---------- -echo "==> 推送代码到 http://$HOST/$USER/$REPO.git ($BRANCH)" -AUTH="$(printf '%s:%s' "$USER" "$GITEA_TOKEN" | base64 | tr -d '\n')" +echo "==> 推送代码到 https://$HOST/$USER/$REPO.git ($BRANCH)" +AUTH="$(printf '%s:%s' "$USER" "$GITEA_TOKEN" | base64 | tr -d '\r\n')" git -c credential.helper= \ -c http.extraHeader="Authorization: Basic $AUTH" \ push -u origin "$BRANCH"