Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
caucase
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
nexedi
caucase
Commits
268b3a53
Commit
268b3a53
authored
Dec 13, 2018
by
Vincent Pelletier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell: Add --version support.
parent
a9e2c64f
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
1 deletion
+15
-1
.gitattributes
.gitattributes
+1
-0
shell/caucase.sh
shell/caucase.sh
+14
-1
No files found.
.gitattributes
View file @
268b3a53
caucase/_version.py export-subst
shell/caucase.sh export-subst
shell/caucase.sh
View file @
268b3a53
...
...
@@ -749,7 +749,7 @@ EOF
status arg argc
\
ca_netloc ca_address ca_port ca_path
\
csr_id csr csr_path crl crt crt_path crt_dir key_path key serial
\
csr_list_json
csr_list_json
version
while
test
$#
-gt
0
;
do
arg
=
"
$1
"
...
...
@@ -760,6 +760,19 @@ EOF
_usage
return
;;
--version
)
# shellcheck disable=SC2016
version
=
'$Format:%H$'
if
[
"x
$(
echo
"
$version
"
|
base64
)
"
=
'xJEZvcm1hdDolSCQK'
]
;
then
if
command
-v
git
>
/dev/null
;
then
version
=
"
$(
git describe
--tags
--dirty
--always
--long
)
"
else
version
=
'unknown'
fi
fi
printf
'%s\n'
"
$version
"
return
;;
--ca-url
)
_needArg 1
||
return
1
ca_anon_url
=
"
$1
"
...
...
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