parent
77614b635f
commit
700f651378
1 changed files with 7 additions and 2 deletions
9
neofetch
9
neofetch
|
@ -4656,8 +4656,13 @@ get_cols() {
|
||||||
printf -v block_spaces "%${block_height}s"
|
printf -v block_spaces "%${block_height}s"
|
||||||
|
|
||||||
# Convert the spaces into rows of blocks.
|
# Convert the spaces into rows of blocks.
|
||||||
[[ "$blocks" ]] && cols+="${block_spaces// /${blocks}\[mnl}"
|
if [[ $BASH_VERSION == 3* ]]; then
|
||||||
[[ "$blocks2" ]] && cols+="${block_spaces// /${blocks2}\[mnl}"
|
[[ "$blocks" ]] && cols+="${block_spaces// /${blocks}[mnl}"
|
||||||
|
[[ "$blocks2" ]] && cols+="${block_spaces// /${blocks2}[mnl}"
|
||||||
|
else
|
||||||
|
[[ "$blocks" ]] && cols+="${block_spaces// /${blocks}\[mnl}"
|
||||||
|
[[ "$blocks2" ]] && cols+="${block_spaces// /${blocks2}\[mnl}"
|
||||||
|
fi
|
||||||
|
|
||||||
# Determine the horizontal offset of the blocks.
|
# Determine the horizontal offset of the blocks.
|
||||||
case $col_offset in
|
case $col_offset in
|
||||||
|
|
Loading…
Reference in a new issue