Capitalize the holiday name
This commit is contained in:
parent
e8505903f0
commit
6c3de680c0
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue