From 133cea8089214a45b509d8451b573e935d3f7f81 Mon Sep 17 00:00:00 2001 From: Brian Read Date: Mon, 17 Jul 2023 10:26:47 +0100 Subject: [PATCH] Add test for null release tag and exit if so --- git-make-release.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/git-make-release.sh b/git-make-release.sh index 9337bd0..e3c858a 100755 --- a/git-make-release.sh +++ b/git-make-release.sh @@ -68,6 +68,12 @@ for param in $4 $5 $6; do fi done +#check for release tag +if [ -z $3 ]; then + echo "Release tag not set"; + exit 1; +fi + if [ $NOISY ] ; then echo "make-release $1 $2 $3 $4 $5 $6" ; fi if [ $DEBUG ] ; then echo "************found ini file: $inifilename" ; fi # Make this null if you want lots of output. Still quite a bit anyway