From efa0adc41b425f58e26a6b49ac5be0319489290c Mon Sep 17 00:00:00 2001 From: Mike Gerwitz Date: Sun, 26 May 2013 17:38:53 -0400 Subject: [PATCH] index template will output commit-id line only if available --- tpl/index | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tpl/index b/tpl/index index 0746829..7739bf2 100755 --- a/tpl/index +++ b/tpl/index @@ -84,7 +84,9 @@ cat <Copyright © $yearrange $copyright
Last Updated: $( ./tsdate "$lastts" '%F %H:%M:%S' )
-
$lasthash
+ $( [ -n "$commit-id" ] \ + && printf '
%s
' "$lasthash" + )