cols: Use C-Style for loop instead of while loop
This commit is contained in:
parent
75b6d66f72
commit
322a866b65
2
neofetch
2
neofetch
|
@ -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}" ;;
|
||||||
|
|
Reference in New Issue