mirror of
https://github.com/filebrowser/filebrowser.git
synced 2024-06-07 23:00:43 +00:00
chore: setting untracked version [ci skip]
This commit is contained in:
parent
e4d72d76bd
commit
dc1a63c352
@ -2,5 +2,5 @@ package version
|
||||
|
||||
const (
|
||||
// Version is the current File Browser version.
|
||||
Version = "v2.0.5"
|
||||
Version = "(untracked)"
|
||||
)
|
||||
|
@ -225,7 +225,7 @@ release () {
|
||||
exit 1
|
||||
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
|
||||
echo "Not valid semver format. See semver.org"
|
||||
@ -237,7 +237,7 @@ release () {
|
||||
cd frontend
|
||||
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."
|
||||
exit 1
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user