From 3e2606ed7e8a64866b48b6f18b6130b4d23c57b1 Mon Sep 17 00:00:00 2001 From: Nick Chambers Date: Thu, 1 Dec 2022 12:37:26 -0600 Subject: [PATCH] Move uppercase operator to correct spot --- 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 36b1be6..04aaf52 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