aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sh/profile.d/verse.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/sh/profile.d/verse.sh b/sh/profile.d/verse.sh
index ef68bb93..353c882a 100644
--- a/sh/profile.d/verse.sh
+++ b/sh/profile.d/verse.sh
@@ -17,9 +17,9 @@ command -v verse >/dev/null 2>&1 || return
# Run verse(1) if we haven't seen it already today (the verses are selected by
# date); run in a subshell to keep vars out of global namespace
(
- now=$(date +%Y-%m-%d)
+ now=$(date +%Y%m%d)
[ -f "$HOME"/.verse ] && last=$(cat -- "$HOME"/.verse)
- [ "$now" \> "$last" ] || exit
+ [ "$now" -gt "$last" ] || exit
verse
printf '\n'
printf '%s\n' "$now" > "$HOME"/.verse