From 6ffa2d6e728280fd26c5eec8da19a995b7624ef7 Mon Sep 17 00:00:00 2001 From: raydelto Date: Thu, 24 Dec 2015 23:30:51 -0400 Subject: [PATCH 1/3] Updating the year so that it will update automatically --- tree-EN.sh | 5 +++-- tree-ES.sh | 6 ++++-- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/tree-EN.sh b/tree-EN.sh index 395f024..b4b139c 100755 --- a/tree-EN.sh +++ b/tree-EN.sh @@ -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 diff --git a/tree-ES.sh b/tree-ES.sh index f67c103..9fd36be 100755 --- a/tree-ES.sh +++ b/tree-ES.sh @@ -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 From 3836a93d60d2495439fdc2221c719afeca2df335 Mon Sep 17 00:00:00 2001 From: Raydelto Hernandez Date: Fri, 25 Dec 2015 19:31:35 -0400 Subject: [PATCH 2/3] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 326ec64..b5c8ab9 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # ChristBASHTree -You know, a Christmas tree on Bash :) +A Christmas tree on Bash created initially by Sergio Lepore, updated by Raydelto Hernandez for keeping track automatically of subsequents years. ![](https://i.imgur.com/x2ENBsL.png) From bf869d97e449d82e714acfb7993cfec00e5470d9 Mon Sep 17 00:00:00 2001 From: Raydelto Hernandez Date: Fri, 25 Dec 2015 19:34:05 -0400 Subject: [PATCH 3/3] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index b5c8ab9..4b4726b 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ A Christmas tree on Bash created initially by Sergio Lepore, updated by Raydelto Hernandez for keeping track automatically of subsequents years. -![](https://i.imgur.com/x2ENBsL.png) +![](http://www.raydelto.org/ray_christ.png) # Usage