Commit f2945b4c authored by Guillaume Bougard's avatar Guillaume Bougard Committed by Cédric Anne
Browse files

Fix just build nightly date

parent a845204b
...@@ -47,6 +47,12 @@ do ...@@ -47,6 +47,12 @@ do
SIZE=$( stat -c %s "$file" ) SIZE=$( stat -c %s "$file" )
read DATE TIME TZ <<<$(git log -n1 --pretty=%ci -- $file) read DATE TIME TZ <<<$(git log -n1 --pretty=%ci -- $file)
[ "$TZ" == "+0000" ] && TZ="UTC" [ "$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 cat <<DESCRIPTION
$BRANCH|[$NAME]($NAME)|$DATE $TIME $TZ|$SIZE $BRANCH|[$NAME]($NAME)|$DATE $TIME $TZ|$SIZE
DESCRIPTION DESCRIPTION
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment