From 30d808c52d9730f0a211ac096b9dcda54aba8672 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Sat, 15 Oct 2016 22:01:15 +1100 Subject: [PATCH] Fix function in bash 3 --- neofetch | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/neofetch b/neofetch index 7c8fde9c..f459b363 100755 --- a/neofetch +++ b/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 } # }}}