From 3d5bc9bb0a6fa9d9b51b6c455ff36ba914f927e6 Mon Sep 17 00:00:00 2001 From: GrigRUSS Date: Fri, 28 Dec 2018 08:59:20 +0300 Subject: [PATCH] Fix garland --- tree-RU.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tree-RU.sh b/tree-RU.sh index b920052..f83db07 100644 --- a/tree-RU.sh +++ b/tree-RU.sh @@ -34,8 +34,7 @@ let new_year++ tput setaf 1; tput bold tput cup $lin $((c - 6)); echo "С НОВЫМ ГОДОМ!" tput cup $((lin + 1)) $((c - 10)); echo "И хорошего КОДА в $new_year" -# Next string for English version. -#let c++ +let c++ k=1 # Lights and decorations @@ -59,6 +58,7 @@ while true; do color=$(((color+1)%8)) # Flashing text sh=1 + let c-- for l in К О Д А do tput cup $((lin+1)) $((c+sh)) @@ -66,6 +66,7 @@ while true; do let sh++ sleep 0.01 done + let c++ } k=$((k % 2 + 1)) done