diff --git a/neofetch b/neofetch index a64e7529..5c752b85 100755 --- a/neofetch +++ b/neofetch @@ -2981,9 +2981,8 @@ main() { # Distro detection getdistro - case "${ascii_distro:-auto}" in - "auto") ascii_distro="$(trim "$distro")" ;; - esac + [ "${ascii_distro:-auto}" == "auto" ] && \ + ascii_distro="$(trim "$distro")" # Get colors and bold bold @@ -3073,7 +3072,7 @@ main() { # Show error messages [ "$verbose" == "on" ] && printf "%s" "$err" - # Reset exit status of the tests above. + # Reset exit status of the tests above printf "%s" }