Commit 3344bbf8 authored by Joseph Durel's avatar Joseph Durel

Fix `uppercase()` outputting nothing under `bash` < v4

parent be893d48
...@@ -3255,7 +3255,11 @@ strip_sequences() { ...@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment