From 24fda8221595b4fa0f0b73db6bdb575b09cdf2aa Mon Sep 17 00:00:00 2001 From: Anton Novojilov Date: Tue, 5 Dec 2023 22:44:32 +0300 Subject: [PATCH] Improve 'git release' --- .zshrc | 4 ++++ install.sh | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.zshrc b/.zshrc index 885bb44..a947573 100644 --- a/.zshrc +++ b/.zshrc @@ -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 diff --git a/install.sh b/install.sh index 0c05eca..c9a6f2b 100755 --- a/install.sh +++ b/install.sh @@ -7,7 +7,7 @@ set -e ################################################################################ -VERSION="2.3.8" +VERSION="2.3.9" ################################################################################