Move uppercase operator to correct spot

This commit is contained in:
Nick Chambers 2022-12-01 12:37:26 -06:00
parent 85e41ec7f6
commit 3e2606ed7e
1 changed files with 1 additions and 1 deletions

View File

@ -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