Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
searx-engine
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gargantext
searx-engine
Commits
4dad3661
Commit
4dad3661
authored
Apr 02, 2020
by
Dalf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[fix] travis: fix docker tag.
the "-dirty" ignores the searx/brand.py and utils/brand.env files.
parent
8189e18d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
manage.sh
manage.sh
+2
-1
No files found.
manage.sh
View file @
4dad3661
...
@@ -121,8 +121,9 @@ docker_build() {
...
@@ -121,8 +121,9 @@ docker_build() {
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); $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 searx/brand.py and utils/brand.env
git update-index
-q
--refresh
git update-index
-q
--refresh
if
[
!
-z
"
$(
git diff-index
--name-only
HEAD
--
)
"
]
;
then
if
[
!
-z
"
$(
git diff-index
--name-only
HEAD
--
|
grep
-v
'searx/brand.py'
|
grep
-v
'utils/brand.env'
)
"
]
;
then
SEARX_GIT_VERSION
=
"
${
SEARX_GIT_VERSION
}
-dirty"
SEARX_GIT_VERSION
=
"
${
SEARX_GIT_VERSION
}
-dirty"
fi
fi
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment