mirror of
https://github.com/dylanaraps/neofetch.git
synced 2025-12-24 12:32:32 +00:00
cols: Use C-Style for loop instead of while loop
This commit is contained in:
2
neofetch
2
neofetch
@@ -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}" ;;
|
||||
|
||||
Reference in New Issue
Block a user