Commit 8dacb0b5 authored by Cédric Anne's avatar Cédric Anne
Browse files

Merge branch '9.5/bugfixes'

parents a999eb37 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
......
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