style fix - static-site-scripts - static site generator shellscripts
(HTM) git clone git://git.codemadness.org/static-site-scripts
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit a2cc7c5e5a5cd3f1e2b2d3727b7f07cee3b0872e
(DIR) parent 928dd12f6c8ce14c883773f26eca4cc69a59848e
(HTM) 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(-)
---
(DIR) 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__