Skip to content

Commit

Permalink
[PR] dylanaraps#170 from OldWorldOrdr: Fix color blocks for bash !=3 …
Browse files Browse the repository at this point in the history
…& <5
  • Loading branch information
hykilpikonna authored Aug 18, 2023
2 parents 98863df + 29cbbae commit edf2a69
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion neofetch
Original file line number Diff line number Diff line change
Expand Up @@ -5083,7 +5083,7 @@ get_cols() {
printf -v block_spaces "%${block_height}s"

# Convert the spaces into rows of blocks.
if [[ $BASH_VERSION == 3* ]]; then
if [ "${BASH_VERSION%%.*}" -lt 5 ]; then
[[ "$blocks" ]] && cols+="${block_spaces// /${blocks}nl}"
[[ "$blocks2" ]] && cols+="${block_spaces// /${blocks2}nl}"
else
Expand Down

0 comments on commit edf2a69

Please sign in to comment.