Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
GLPI
glpi
Commits
f2945b4c
Commit
f2945b4c
authored
Jun 18, 2021
by
Guillaume Bougard
Committed by
Cédric Anne
Jun 18, 2021
Browse files
Fix just build nightly date
parent
a845204b
Changes
1
Hide whitespace changes
Inline
Side-by-side
tools/github-nightly-description.sh
View file @
f2945b4c
...
...
@@ -47,6 +47,12 @@ do
SIZE
=
$(
stat
-c
%s
"
$file
"
)
read
DATE TIME TZ
<<<
$(
git log
-n1
--pretty
=
%ci
--
$file
)
[
"
$TZ
"
==
"+0000"
]
&&
TZ
=
"UTC"
# Set current date if archive still not commited
if
[
-z
"
$DATE
"
]
;
then
DATE
=
$(
date
-u
+
"%F"
)
TIME
=
$(
date
-u
+
"%T"
)
TZ
=
"UTC"
fi
cat
<<
DESCRIPTION
$BRANCH
|[
$NAME
](
$NAME
)|
$DATE
$TIME
$TZ
|
$SIZE
DESCRIPTION
...
...
Write
Preview
Supports
Markdown
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