From f0f56080128a4bbc2679a00c2c436138cacfb349 Mon Sep 17 00:00:00 2001 From: Scott Gasch Date: Tue, 18 Oct 2022 22:50:39 -0700 Subject: [PATCH] Teach cut_version.sh about PREVIOUS_VERSION... --- cut_version.sh | 3 +++ 1 file changed, 3 insertions(+) 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 -- 2.46.0