@@ -120,7 +120,7 @@ docker_build() {
120120
121121 # "git describe" to get the Docker version (for example : v0.15.0-89-g0585788e)
122122 # awk to remove the "v" and the "g"
123− 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}')
123+ 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}')
124124
125125 # add the suffix "-dirty" if the repository has uncommited change
126126 # /!\ HACK for searx/searx: ignore searx/brand.py and utils/brand.env