aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustine Smithies <justine@smithies.me.uk>2026-10-03 08:29:03 +0100
committerJustine Smithies <justine@smithies.me.uk>2026-10-03 08:29:03 +0100
commit8c6b7b80c0bd83c963a1161c40cc1d0aaa6a2659 (patch)
tree4408bbee72bea3f5746aa9bdbacf1f2de1e55945
parenta41da7164e8314aaab828e4099cc663fdd200d6f (diff)
Fixed a bashism bug on an if then line.
-rwxr-xr-xblarg2
1 files changed, 1 insertions, 1 deletions
diff --git a/blarg b/blarg
index 9d24cd8..fa9c164 100755
--- a/blarg
+++ b/blarg
@@ -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} )"