diff --git a/render.sh b/render.sh index 6348134..d109522 100644 --- a/render.sh +++ b/render.sh @@ -11,11 +11,10 @@ file=$1 height=$(lib/json.sh -s height $file) width=$(lib/json.sh -s width $file) -heighti=0 +heighti=$height -while [ $heighti -ne $height ] +while [ $heighti -ne 0 ] do - heighti=$((heighti+1)) widthi=0 while [ $widthi -ne $width ] do @@ -56,6 +55,7 @@ do fi fi done + heighti=$((heighti-1)) printf "\033[m\n" done