cols: Use C-Style for loop instead of while loop

This commit is contained in:
Dylan Araps 2016-11-14 00:58:26 +11:00
parent 75b6d66f72
commit 322a866b65

View file

@ -1776,7 +1776,7 @@ get_cols() {
block_width="${block_width// /█}"
# Generate the string.
while (("$start" <= "$end")); do
for ((start; start<=end; i++)); do
case "$start" in
[0-6]) blocks+="${reset}\033[3${start}m\033[4${start}m${block_width}" ;;
7) blocks+="${reset}\033[3${start}m\033[4${start}m${block_width}" ;;