summaryrefslogtreecommitdiffstats
path: root/newlog.sh
diff options
context:
space:
mode:
Diffstat (limited to 'newlog.sh')
-rwxr-xr-xnewlog.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/newlog.sh b/newlog.sh
index 58cd1c2..8b24c64 100755
--- a/newlog.sh
+++ b/newlog.sh
@@ -4,8 +4,8 @@
_log_file="decadv-2025.html"
-day="$(printf '%02d' "$1")"
-[ -z "$1" ] && day="$(date +%d)"
+day="$1"
+[ -z "$1" ] && day="$(date +%d)" || day="$(printf '%02d' "$1")"
echo "new log entry for day $day"