deploy.sh: Show last tags.

This commit is contained in:
Fabian Schlenz 2019-11-29 06:13:16 +01:00
parent 8e15f87cd3
commit 571e969bc4
1 changed files with 9 additions and 1 deletions

View File

@ -1,6 +1,6 @@
#!/usr/bin/env bash
set -x
set -e
#set -e
if ! git diff-index --quiet HEAD ; then
echo "Git isn't clean. Cant deploy."
@ -16,6 +16,14 @@ if [ "$branch_name" != "master" ]; then
exit 1
fi
echo
echo
echo "Last tags:"
vers=`git tag --sort=-version:refname | head -n 5`
while read version; do
echo " $version"
done <<< "$vers"
read -p "Version to generate: " VERSION
OTA_VERSION=`grep "VERSION=" bin/update.manifest | cut -d"=" -f2`