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
1 changed files with 5 additions and 1 deletions

View File

@ -3255,7 +3255,11 @@ strip_sequences() {
} }
uppercase() { uppercase() {
((bash_version >= 4)) && printf "%s" "${1^}" if ((bash_version >= 4)); then
printf "%s" "${1^}"
else
echo $1
fi
} }
# COLORS # COLORS