Skip to content

Commit

Permalink
Release 2021.10.27-1 (#450)
Browse files Browse the repository at this point in the history
  • Loading branch information
BenElgar authored Oct 27, 2021
1 parent f3f505c commit 276ccde
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2021.10.27_1
2021.10.27-1
6 changes: 3 additions & 3 deletions script/increment-version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ source "$( dirname "${BASH_SOURCE[0]}" )/.include"
currentversion="$(cat "${ROOT_DIR}/VERSION")"
version="$(date -u +'%Y.%m.%d')"
if [[ "$currentversion" == "${version}"* ]]; then
lastbuild="${currentversion#*_}"
lastbuild="${currentversion#*-}"
if [[ "$lastbuild" == "$currentversion" ]]; then
version="${version}_1"
version="${version}-1"
else
version="${version}_$((lastbuild+1))"
version="${version}-$((lastbuild+1))"
fi
fi

Expand Down

0 comments on commit 276ccde

Please sign in to comment.