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 } # }}}