Loading manage +1 −3 Original line number Original line Diff line number Diff line Loading @@ -188,11 +188,9 @@ docker.build() { die 1 "there is no remote origin" die 1 "there is no remote origin" fi fi # This is a git repository # "git describe" to get the Docker version (for example : v0.15.0-89-g0585788e) # "git describe" to get the Docker version (for example : v0.15.0-89-g0585788e) # awk to remove the "v" and the "g" # 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); if ($3) { $3=substr($3, 2); } print}') SEARX_GIT_VERSION=$(git describe --tags | awk -F'-' '{OFS="-"; $1=substr($1, 2); if ($3) { $3=substr($3, 2); } print}') # add the suffix "-dirty" if the repository has uncommited change # add the suffix "-dirty" if the repository has uncommited change # /!\ HACK for searx/searx: ignore utils/brand.env # /!\ HACK for searx/searx: ignore utils/brand.env Loading Loading
manage +1 −3 Original line number Original line Diff line number Diff line Loading @@ -188,11 +188,9 @@ docker.build() { die 1 "there is no remote origin" die 1 "there is no remote origin" fi fi # This is a git repository # "git describe" to get the Docker version (for example : v0.15.0-89-g0585788e) # "git describe" to get the Docker version (for example : v0.15.0-89-g0585788e) # awk to remove the "v" and the "g" # 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); if ($3) { $3=substr($3, 2); } print}') SEARX_GIT_VERSION=$(git describe --tags | awk -F'-' '{OFS="-"; $1=substr($1, 2); if ($3) { $3=substr($3, 2); } print}') # add the suffix "-dirty" if the repository has uncommited change # add the suffix "-dirty" if the repository has uncommited change # /!\ HACK for searx/searx: ignore utils/brand.env # /!\ HACK for searx/searx: ignore utils/brand.env Loading