From b41a75609eeab3767041e1a159be89a5eaf40e58 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Sat, 14 Jan 2017 23:08:47 +1100 Subject: [PATCH] Images: Fix unknown image backend fallback --- neofetch | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/neofetch b/neofetch index e7c29239..c1a4f96d 100755 --- a/neofetch +++ b/neofetch @@ -1965,9 +1965,9 @@ image_backend() { get_image_program if type -p "$image_program" >/dev/null 2>&1; then - err "Image: Drawing images using $image_program" + err "Image: Drawing images using '$image_program'." else - to_ascii "Image: Failed to find image program '$image_program'" + to_ascii "Image: Failed to find image program '$image_program'." err "Image: Falling back to ascii mode." return fi @@ -1979,8 +1979,8 @@ image_backend() { zws="​ " else unset image_program - to_ascii "Image: Failed to find terminal window size" - err "Image: Check the 'Images in the terminal' wiki page for more info" + to_ascii "Image: Failed to find terminal window size." + err "Image: Check the 'Images in the terminal' wiki page for more info," return fi @@ -1990,10 +1990,10 @@ image_backend() { ;; *) - image_backend="off" - err "Image: Unknown image backend specified. ($image_backend)" + err "Image: Unknown image backend specified '$image_backend'." err "Image: Valid backends are: 'iterm2', 'w3m'. 'tycat', 'ascii', 'off'" - err "Image: Falling back to off mode." + err "Image: Falling back to ascii mode." + get_ascii ;; esac