Fix uppercase() outputting nothing under bash < v4

This commit is contained in:
Joseph Durel 2018-02-01 22:01:22 -05:00
parent be893d48c3
commit 3344bbf8c7

View file

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