From 66be054f30079a6934596594d01ff74fbf4000ba Mon Sep 17 00:00:00 2001 From: Muhammad Herdiansyah Date: Sat, 10 Dec 2016 19:50:33 +0700 Subject: [PATCH 1/2] Colors: use start++ instead of adding it manually after case --- neofetch | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/neofetch b/neofetch index a9e573d4..d2c82a1b 100755 --- a/neofetch +++ b/neofetch @@ -1856,13 +1856,12 @@ get_cols() { block_width="${block_width// /█}" # Generate the string. - for ((start; start<=end; i++)); do + for ((start; start<=end; start++)); 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}" ;; *) blocks2+="\033[38;5;${start}m\033[48;5;${start}m${block_width}" ;; esac - start="$((start+=1))" done # Convert height into spaces. From 8a5250e36259c229c5aa47060db7c94af8322e69 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Sat, 10 Dec 2016 23:57:54 +1100 Subject: [PATCH 2/2] Update CHANGELOG.md --- CHANGELOG.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index c1f84aa3..b6af8a37 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,6 @@ ## Contributors +- **[@konimex](https://github.com/konimex)** ## IRC @@ -24,6 +25,9 @@ Neofetch now has an irc channel at `##neofetch` on Freenode. If you have any que - Warn the user if `df` isn't installed. - Fixed broken output if `df` wasn't installed but the function was enabled. +**Color Blocks**
+ +- Use start++ instead of adding it manually after case. **[@konimex](https://github.com/konimex)** ## Images