Commit 322a866b authored by Dylan Araps's avatar Dylan Araps

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

parent 75b6d66f
...@@ -1776,7 +1776,7 @@ get_cols() { ...@@ -1776,7 +1776,7 @@ get_cols() {
block_width="${block_width// /█}" block_width="${block_width// /█}"
# Generate the string. # Generate the string.
while (("$start" <= "$end")); do for ((start; start<=end; i++)); do
case "$start" in case "$start" in
[0-6]) blocks+="${reset}\033[3${start}m\033[4${start}m${block_width}" ;; [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}" ;; 7) blocks+="${reset}\033[3${start}m\033[4${start}m${block_width}" ;;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment