From 75a7d2c1b43e42a9eba85a171861b171ea6a9c32 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Sun, 2 Oct 2016 12:23:12 +1100 Subject: [PATCH] swap case for ifs --- neofetch | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/neofetch b/neofetch index 54e4bf29..58104d5b 100755 --- a/neofetch +++ b/neofetch @@ -3155,10 +3155,8 @@ main() { printf "\033[9999999D" # Move cursor to top of ascii art - case "$image" in - "ascii" | "off") ;; - *) printf "\033[0H" ;; - esac + [ "$image" != "ascii" ] && [ "$image" != "off" ] && \ + printf "\033[0H" # Print the info printinfo