From 322a866b6507c6569a78a53770bb09ffc7c0df49 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Mon, 14 Nov 2016 00:58:26 +1100 Subject: [PATCH] cols: Use C-Style for loop instead of while loop --- neofetch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/neofetch b/neofetch index 5e3d39f0..ecb11b0e 100755 --- a/neofetch +++ b/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}" ;;