summaryrefslogtreecommitdiff
path: root/manage.sh
diff options
context:
space:
mode:
authorAlexandre Flament <alex@al-f.net>2020-09-09 11:35:18 +0200
committerAlexandre Flament <alex@al-f.net>2020-09-10 10:09:15 +0200
commit272158944bf13503e2597018fc60a00baddec660 (patch)
tree86e1afc0ff5ae186a79fcf5b59e601e9ec6ce453 /manage.sh
parent8ffede6140ccf60933506c18444e315840ac2829 (diff)
downloadsearxng-272158944bf13503e2597018fc60a00baddec660.tar.gz
searxng-272158944bf13503e2597018fc60a00baddec660.zip
[fix] make docker produces clean tag version (0.17.0 instead of 0.17.0-- for example)
Fix #2152
Diffstat (limited to 'manage.sh')
-rwxr-xr-xmanage.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/manage.sh b/manage.sh
index 424d64ea2..b3c57bf88 100755
--- a/manage.sh
+++ b/manage.sh
@@ -120,7 +120,7 @@ docker_build() {
# "git describe" to get the Docker version (for example : v0.15.0-89-g0585788e)
# awk to remove the "v" and the "g"
- SEARX_GIT_VERSION=$(git describe --match "v[0-9]*\.[0-9]*\.[0-9]*" HEAD 2>/dev/null | awk -F'-' '{OFS="-"; $1=substr($1, 2); $3=substr($3, 2); print}')
+ SEARX_GIT_VERSION=$(git describe --match "v[0-9]*\.[0-9]*\.[0-9]*" HEAD 2>/dev/null | awk -F'-' '{OFS="-"; $1=substr($1, 2); if ($3) { $3=substr($3, 2); } print}')
# add the suffix "-dirty" if the repository has uncommited change
# /!\ HACK for searx/searx: ignore searx/brand.py and utils/brand.env