mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-09-29 08:08:21 +00:00
Make detecting version more reliable
The docker bash scripts try to get the version from sbt, without calling sbt but reading the files. This was relying on a specific position. It is now a bit more robust.
This commit is contained in:
@@ -5,9 +5,7 @@ if [ $# -eq 1 ]; then
|
||||
REPO=$1
|
||||
fi
|
||||
|
||||
TMP_VERSION=$(cat ../version.sbt)
|
||||
TMP_VERSION=${TMP_VERSION:25:99}
|
||||
VERSION=${TMP_VERSION%\"}
|
||||
VERSION=$(cat ../version.sbt | cut -d'=' -f2 | tr -d '"'|xargs)
|
||||
|
||||
if [[ $VERSION == *"SNAPSHOT" ]]; then
|
||||
VERSION=SNAPSHOT
|
||||
|
Reference in New Issue
Block a user