chore: setting untracked version [ci skip]

Former-commit-id: d365cf44114615b1974bca28041f6794c9cce71f [formerly 0cf80ffb0e33addac168404fd15c2fa58072e6cf] [formerly 649c1403af6999d42e8943a9739fea5554234338 [formerly dc1a63c352]]
Former-commit-id: fabb9e4fa36b6753b13586fe86e643ae5bae25b8 [formerly 5d7bf3a33660e7c22611fe2f51a48a91e8fd8bcb]
Former-commit-id: 04f8dea3942ea6ac95085ce732082a00bf31d9e3
pull/726/head
Henrique Dias 2019-05-11 11:21:13 +01:00
parent 579f3ccd7d
commit b8dfd79dfe
2 changed files with 3 additions and 3 deletions

View File

@ -2,5 +2,5 @@ package version
const ( const (
// Version is the current File Browser version. // Version is the current File Browser version.
Version = "v2.0.5" Version = "(untracked)"
) )

View File

@ -225,7 +225,7 @@ release () {
exit 1 exit 1
fi fi
semver=$(echo "$1" | ggrep -P '^v(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)') semver=$(echo "$1" | grep -P '^v(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)')
if [ $? -ne 0 ]; then if [ $? -ne 0 ]; then
echo "Not valid semver format. See semver.org" echo "Not valid semver format. See semver.org"
@ -237,7 +237,7 @@ release () {
cd frontend cd frontend
git fetch --all git fetch --all
if [ $(git tag | ggrep "$semver" | wc -l) -eq 0 ]; then if [ $(git tag | grep "$semver" | wc -l) -eq 0 ]; then
echo "Tag $semver does not exist in submodule 'frontend'. Tag it and run this script again." echo "Tag $semver does not exist in submodule 'frontend'. Tag it and run this script again."
exit 1 exit 1
fi fi