From 793bcbcc7d1a48dd529c104bce6e88a5d29bc2c9 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Sat, 13 Aug 2016 19:28:21 +1000 Subject: [PATCH] Simplify ascii distro auto --- neofetch | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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" }