deploy.sh: Show last tags.
This commit is contained in:
parent
8e15f87cd3
commit
571e969bc4
10
deploy.sh
10
deploy.sh
@ -1,6 +1,6 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
set -x
|
set -x
|
||||||
set -e
|
#set -e
|
||||||
|
|
||||||
if ! git diff-index --quiet HEAD ; then
|
if ! git diff-index --quiet HEAD ; then
|
||||||
echo "Git isn't clean. Cant deploy."
|
echo "Git isn't clean. Cant deploy."
|
||||||
@ -16,6 +16,14 @@ if [ "$branch_name" != "master" ]; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
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
|
read -p "Version to generate: " VERSION
|
||||||
|
|
||||||
OTA_VERSION=`grep "VERSION=" bin/update.manifest | cut -d"=" -f2`
|
OTA_VERSION=`grep "VERSION=" bin/update.manifest | cut -d"=" -f2`
|
||||||
|
Loading…
Reference in New Issue
Block a user