Updating the year so that it will update automatically
This commit is contained in:
parent
d6e6978386
commit
6ffa2d6e72
2 changed files with 7 additions and 4 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue