chore: fix typo

This commit is contained in:
spacewander 2021-03-25 11:40:23 +08:00
parent d7b527c1ae
commit a424d0915e
2 changed files with 5 additions and 5 deletions

View file

@ -220,7 +220,7 @@
* git-pr: emphasized that the remote is required when pulling multiple PRs.
* Merge pull request #743 from spacewander/allow_multiple_pr
* git-pr: accpeted multiple GitHub URL or ID with remote.
* git-pr: accepted multiple GitHub URL or ID with remote.
* git-pr: added <[remote]:pr number> option.
* Merge pull request #740 from spacewander/tweak_man_readme
* doc: clarify the current working directory when building the docs.

View file

@ -3,11 +3,11 @@
# Assert there is at least one tag provided
test -z $1 && echo "tag required." 1>&2 && exit 1
# Detect the defalt remote exists or not
defualt_remote=$(git config git-extras.default-remote)
# Detect the default remote exists or not
default_remote=$(git config git-extras.default-remote)
if [[ -n "$defualt_remote" ]]; then
origin="$defualt_remote"
if [[ -n "$default_remote" ]]; then
origin="$default_remote"
else
origin=origin
fi