diff options
| author | Justine Smithies <justine@smithies.me.uk> | 2026-10-03 08:29:03 +0100 |
|---|---|---|
| committer | Justine Smithies <justine@smithies.me.uk> | 2026-10-03 08:29:03 +0100 |
| commit | 8c6b7b80c0bd83c963a1161c40cc1d0aaa6a2659 (patch) | |
| tree | 4408bbee72bea3f5746aa9bdbacf1f2de1e55945 | |
| parent | a41da7164e8314aaab828e4099cc663fdd200d6f (diff) | |
Fixed a bashism bug on an if then line.
| -rwxr-xr-x | blarg | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -85,7 +85,7 @@ write_page() { # Reverse date from YYYY-MM-DD to DD-MM-YY updated=$(echo "$updated" | awk -F'-' '{printf("%02d-%02d-%02d\n",$3,$2,$1)}') dates_text="Published on ${created}" - if [[ "$created" == "00-00-00" ]]; then + if [ "$created" = "00-00-00" ]; then dates_text="" elif [ "$created" != "$updated" ]; then dates_text="$dates_text ( Updated ${updated} )" |
