Fix function in bash 3

This commit is contained in:
Dylan Araps 2016-10-15 22:01:15 +11:00
parent a8ccdf6a65
commit 30d808c52d
1 changed files with 5 additions and 1 deletions

View File

@ -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
}
# }}}