Fix function in bash 3
This commit is contained in:
parent
a8ccdf6a65
commit
30d808c52d
1 changed files with 5 additions and 1 deletions
6
neofetch
6
neofetch
|
@ -2669,7 +2669,11 @@ bold() {
|
|||
|
||||
# Uppercase the first letter of $1
|
||||
uppercase () {
|
||||
[ "$version" -ge 4 ] && printf "%s" "${1^}"
|
||||
if [ "$version" -ge 4 ]; then
|
||||
printf "%s" "${1^}"
|
||||
else
|
||||
printf "%s" "${1}"
|
||||
fi
|
||||
}
|
||||
|
||||
# }}}
|
||||
|
|
Loading…
Reference in a new issue