Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
pliablepixels committed Jan 26, 2021
1 parent 89dd888 commit 3f347c5
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions make_changelog.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,16 @@
#!/bin/bash
if [ -z "$1" ]; then
TAGVER=`./zmeventnotification.pl --version`
#echo "Getting version name from zm_detect.py"
echo 'Getting version from zmeventnotification.pl'
if [[ `cat ./zmeventnotification.pl` =~ my\ \$app_version\ =\ \'([0-9]*\.[0-9]*\.[0-9]*)\'\; ]];
then
TAGVER=${BASH_REMATCH[1]}
else
echo "Bad version parsing"
exit
fi
else
TAGVER=$1
TAGVER=$1
fi
VER="${TAGVER/v/}"
read -p "Future release is v${VER}. Please press any key to confirm..."
Expand Down

0 comments on commit 3f347c5

Please sign in to comment.