include bash version < 5 case
This commit is contained in:
parent
ced109f0ea
commit
5ee89eb148
1 changed files with 1 additions and 1 deletions
2
neofetch
2
neofetch
|
@ -5329,7 +5329,7 @@ get_cols() {
|
||||||
# Convert the spaces into rows of blocks.
|
# Convert the spaces into rows of blocks.
|
||||||
if [ "${BASH_VERSION%%.*}" -lt 5 ]; then
|
if [ "${BASH_VERSION%%.*}" -lt 5 ]; then
|
||||||
[[ "$blocks" ]] && cols+="${block_spaces// /${blocks}[39;49mnl}"
|
[[ "$blocks" ]] && cols+="${block_spaces// /${blocks}[39;49mnl}"
|
||||||
[[ "$blocks2" ]] && cols+="${block_spaces// /${blocks2}[39;49mnl}"
|
[[ "$blocks2" ]] && cols+="${block_spaces// /${blocks2}[0mnl}"
|
||||||
else
|
else
|
||||||
[[ "$blocks" ]] && cols+="${block_spaces// /${blocks}\[39;49mnl}"
|
[[ "$blocks" ]] && cols+="${block_spaces// /${blocks}\[39;49mnl}"
|
||||||
[[ "$blocks2" ]] && cols+="${block_spaces// /${blocks2}\[0mnl}"
|
[[ "$blocks2" ]] && cols+="${block_spaces// /${blocks2}\[0mnl}"
|
||||||
|
|
Loading…
Reference in a new issue