Skip to content

Commit

Permalink
Improve 'git release'
Browse files Browse the repository at this point in the history
  • Loading branch information
andyone committed Dec 5, 2023
1 parent 16cd4dc commit 24fda82
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,10 @@ function git_release() {
fi

if [[ $(\git rev-parse --abbrev-ref HEAD 2>/dev/null) != "master" ]] ; then
if ! \git push ; then
return 1
fi

if ! \git checkout master ; then
return 1
fi
Expand Down
2 changes: 1 addition & 1 deletion install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ set -e

################################################################################

VERSION="2.3.8"
VERSION="2.3.9"

################################################################################

Expand Down

0 comments on commit 24fda82

Please sign in to comment.