From 3344bbf8c7b2a20a646d126e7886f7f16dda7232 Mon Sep 17 00:00:00 2001 From: Joseph Durel Date: Thu, 1 Feb 2018 22:01:22 -0500 Subject: [PATCH] Fix `uppercase()` outputting nothing under `bash` < v4 --- neofetch | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/neofetch b/neofetch index f737c056..28300962 100755 --- a/neofetch +++ b/neofetch @@ -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