From 2ecd8102d02086277313a3171bf5e8acda342043 Mon Sep 17 00:00:00 2001 From: Andres Santamaria Artigas Date: Tue, 8 Jan 2019 20:32:34 -0500 Subject: [PATCH] Made variables local in get_cols function The variables blocks, blocks2, and cols were not set as local in the get_cols function, which made neofetch print whatever value they had before showing the colorblocks. This commit makes these variables local so the output doesn't get affected if they are set beforehand. --- neofetch | 1 + 1 file changed, 1 insertion(+) diff --git a/neofetch b/neofetch index 553ea324..647e4283 100755 --- a/neofetch +++ b/neofetch @@ -3359,6 +3359,7 @@ get_gpu_driver() { } get_cols() { + local blocks blocks2 cols if [[ "$color_blocks" == "on" ]]; then # Convert the width to space chars. printf -v block_width "%${block_width}s"