Updating the year so that it will update automatically

This commit is contained in:
raydelto 2015-12-24 23:30:51 -04:00
parent d6e6978386
commit 6ffa2d6e72
2 changed files with 7 additions and 4 deletions

View file

@ -29,10 +29,11 @@ for ((i=1; i<=2; i++))
tput cup $((lin++)) $c
echo 'mWm'
}
new_year=$(date +'%Y')
let new_year++
tput setaf 1; tput bold
tput cup $lin $((c - 6)); echo MERRY CHRISTMAS
tput cup $((lin + 1)) $((c - 10)); echo And lots of CODE in 2015
tput cup $((lin + 1)) $((c - 10)); echo And lots of CODE in $new_year
let c++
k=1

View file

@ -29,10 +29,12 @@ for ((i=1; i<=2; i++))
tput cup $((lin++)) $c
echo 'mWm'
}
ano_nuevo=$(date +'%Y')
let ano_nuevo++
tput setaf 1; tput bold
tput cup $lin $((c - 6)); echo FELICES FIESTAS
tput cup $((lin + 1)) $((c - 9)); echo Y mucho CODIGO en 2015
tput cup $((lin + 1)) $((c - 9)); echo Y mucho CODIGO en $ano_nuevo
let c++
k=1