From 6c3de680c0826c92f0a58ed47549824f8e651f37 Mon Sep 17 00:00:00 2001 From: Nick Chambers Date: Thu, 27 Oct 2022 16:18:03 -0500 Subject: [PATCH] Capitalize the holiday name --- dotlib/generic-post/calendar.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dotlib/generic-post/calendar.sh b/dotlib/generic-post/calendar.sh index dc5cfca..36b1be6 100644 --- a/dotlib/generic-post/calendar.sh +++ b/dotlib/generic-post/calendar.sh @@ -13,7 +13,7 @@ read -r cur_{month,day} < <(date "+%m %d") while IFS=, read -r ev_month ev_day ev celebrate sym; do if (( 10#$cur_month == 10#$ev_month )); then if (( 10#$cur_day < 10#$ev_day )); then - printf "Only %d days until %s!\n" "$(( 10#$ev_day - 10#$cur_day ))" "$ev" + printf "Only %d days until %s!\n" "$(( 10#$ev_day - 10#$cur_day ))" "${^ev}" elif (( 10#$cur_day == 10#$ev_day )); then printf "%s %s!\n" "$celebrate" "${ev^}" fi