From ced109f0eaebd6d9970d54e49f371863036ea95f Mon Sep 17 00:00:00 2001 From: Quinn <99677023+thepigeongenerator@users.noreply.github.com> Date: Thu, 20 Jun 2024 13:45:40 +0200 Subject: [PATCH 1/2] fix colours not reverting properly --- neofetch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/neofetch b/neofetch index 0dd0cefb..8a7d2cfd 100755 --- a/neofetch +++ b/neofetch @@ -5332,7 +5332,7 @@ get_cols() { [[ "$blocks2" ]] && cols+="${block_spaces// /${blocks2}nl}" else [[ "$blocks" ]] && cols+="${block_spaces// /${blocks}\[39;49mnl}" - [[ "$blocks2" ]] && cols+="${block_spaces// /${blocks2}\[39;49mnl}" + [[ "$blocks2" ]] && cols+="${block_spaces// /${blocks2}\[0mnl}" fi # Determine the horizontal offset of the blocks. From 5ee89eb14811b7f988a215857c8411e5a3576bad Mon Sep 17 00:00:00 2001 From: Quinn <99677023+thepigeongenerator@users.noreply.github.com> Date: Thu, 20 Jun 2024 14:13:18 +0200 Subject: [PATCH 2/2] include bash version < 5 case --- neofetch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/neofetch b/neofetch index 8a7d2cfd..510e2aad 100755 --- a/neofetch +++ b/neofetch @@ -5329,7 +5329,7 @@ get_cols() { # Convert the spaces into rows of blocks. if [ "${BASH_VERSION%%.*}" -lt 5 ]; then [[ "$blocks" ]] && cols+="${block_spaces// /${blocks}nl}" - [[ "$blocks2" ]] && cols+="${block_spaces// /${blocks2}nl}" + [[ "$blocks2" ]] && cols+="${block_spaces// /${blocks2}nl}" else [[ "$blocks" ]] && cols+="${block_spaces// /${blocks}\[39;49mnl}" [[ "$blocks2" ]] && cols+="${block_spaces// /${blocks2}\[0mnl}"