From 1a815a378903e881b114b8b9b276f6fd86cd54d0 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Sat, 10 Dec 2016 20:12:16 +1100 Subject: [PATCH] Image: If $image_source is set to ascii display a warning in -v --- neofetch | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/neofetch b/neofetch index 28117e6a..a1843246 100755 --- a/neofetch +++ b/neofetch @@ -1898,6 +1898,12 @@ get_image_backend() { case "$image_source" in "wall"*) get_wallpaper 2>/dev/null ;; "off") image_backend="off"; return ;; + "ascii") + to_ascii "Image: \$image_source set to 'ascii', falling back to ascii mode. " + err "Image: Change \$image_source to another value to use image mode." + return + ;; + *) if [[ -d "$image_source" ]]; then files=("${image_source%/}"/*.{png,jpg,jpeg})