fix: typo

This commit is contained in:
Klesh Wong 2023-04-22 01:06:57 +08:00
parent b23eec9e6b
commit 8b1ef1c133

View File

@ -5,12 +5,13 @@ set -e
# push current branch to ORIGIN and create a PR on UPSTREAM # push current branch to ORIGIN and create a PR on UPSTREAM
# UPSTREAM must be a https github url # UPSTREAM must be a https github url
if [ -n "$PROXY_HOST" ] && [ -n "$PROXY_PORT" ]; then if [ -n "$PROXY_HOST" ] && [ -n "$PROXY_PORT" ]; then
export HTTP_PROXYS=http://$PROXY_HOST:$PROXY_PORT export HTTP_PROXY=http://$PROXY_HOST:$PROXY_PORT
echo HTTP_PROXYS=$HTTP_PROXYS echo HTTP_PROXY=$HTTP_PROXY
echo HTTPS_PROXY=$HTTP_PROXY
fi fi
BRANCH=$(git branch --show-current) BRANCH=$(git branch --show-current)
UPSTREAM_BRANCH=$(HTTP_PROXYS=$HTTP_PROXYS git remote show upstream | grep -oP 'HEAD branch: \K\w+') UPSTREAM_BRANCH=$(HTTPS_PROXY=$HTTP_PROXY git remote show upstream | grep -oP 'HEAD branch: \K\w+')
ORIGIN_URL=$(git remote get-url origin) ORIGIN_URL=$(git remote get-url origin)
case "$ORIGIN_URL" in case "$ORIGIN_URL" in
git@github.com:*) git@github.com:*)