Fix uppercase()
outputting nothing under bash
< v4
This commit is contained in:
parent
be893d48c3
commit
3344bbf8c7
1 changed files with 5 additions and 1 deletions
6
neofetch
6
neofetch
|
@ -3255,7 +3255,11 @@ strip_sequences() {
|
|||
}
|
||||
|
||||
uppercase() {
|
||||
((bash_version >= 4)) && printf "%s" "${1^}"
|
||||
if ((bash_version >= 4)); then
|
||||
printf "%s" "${1^}"
|
||||
else
|
||||
echo $1
|
||||
fi
|
||||
}
|
||||
|
||||
# COLORS
|
||||
|
|
Loading…
Reference in a new issue