Move uppercase operator to correct spot
This commit is contained in:
parent
85e41ec7f6
commit
3e2606ed7e
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue