commit a2cc7c5e5a5cd3f1e2b2d3727b7f07cee3b0872e parent 928dd12f6c8ce14c883773f26eca4cc69a59848e Author: Hiltjo Posthuma <hiltjo@codemadness.org> Date: Sun, 2 Mar 2014 12:09:43 +0100 style fix Signed-off-by: Hiltjo Posthuma <hiltjo@codemadness.org> Diffstat:
M | generate.sh | | | 8 | +++----- |
1 file changed, 3 insertions(+), 5 deletions(-)
diff --git a/generate.sh b/generate.sh @@ -155,11 +155,9 @@ while read -r meta; do content=$("${markdown}" "${filename}") fi fi - if [ "${datecreated}" = "${dateupdated}" ]; then - created="<strong>Created on:</strong> ${dateupdated}<br/>" - else - created="<strong>Created on:</strong> ${datecreated}<br/> - <strong>Last update on:</strong> ${dateupdated}<br/>" + created="<strong>Created on:</strong> ${datecreated}<br/>" + if [ ! "${datecreated}" = "${dateupdated}" ]; then + created="${created}<strong>Last update on:</strong> ${dateupdated}<br/>" fi (pageheader cat <<!__EOF__