From fec45f7a75de8f1f3551b5f32286607a07fc5c4e Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Sun, 6 Nov 2016 18:06:23 +1100 Subject: [PATCH] General: Function cleanup --- neofetch | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/neofetch b/neofetch index 53b4cd8a..a360df63 100755 --- a/neofetch +++ b/neofetch @@ -2440,13 +2440,10 @@ prin() { # Underline {{{ getunderline() { - case "$underline_enabled" in - "on") - underline="$(printf %"$length"s)" - underline="${underline// /$underline_char}" - ;; - "off") underline="" ;; - esac + if [ "$underline_enabled" == "on" ]; then + underline="$(printf %"$length"s)" + underline="${underline// /$underline_char}" + fi } # }}}