From: Scott Gasch Date: Wed, 19 Oct 2022 05:50:39 +0000 (-0700) Subject: Teach cut_version.sh about PREVIOUS_VERSION... X-Git-Url: https://wannabe.guru.org/gitweb/?a=commitdiff_plain;h=f0f56080128a4bbc2679a00c2c436138cacfb349;p=pyutils.git Teach cut_version.sh about PREVIOUS_VERSION... --- diff --git a/cut_version.sh b/cut_version.sh index fe16ed6..094814d 100755 --- a/cut_version.sh +++ b/cut_version.sh @@ -42,6 +42,9 @@ if [ $# -ne 1 ]; then fi VERSION=$1 +PREVIOUS_VERSION=$(git tag --sort=-creatordate | head -1) +echo "PREVIOUS_VERSION=${PREVIOUS_VERSION}" +echo if ! ask_y_n "About to cut (build, test, package, give you the command to upload) $VERSION, ok?" "N"; then echo "Ok, exiting instead." exit 0