From 754ffe2fae1128472a4330914353d4fc5b9e3e70 Mon Sep 17 00:00:00 2001 From: Muhammad Herdiansyah Date: Fri, 24 Aug 2018 11:07:36 +0700 Subject: [PATCH] get_ascii: Do not parse file if it's an image file --- neofetch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/neofetch b/neofetch index c15220a9..1b5d9790 100755 --- a/neofetch +++ b/neofetch @@ -3393,7 +3393,7 @@ image_backend() { } get_ascii() { - if [[ -f "$image_source" ]]; then + if [[ -f "$image_source" && ! "$image_source" =~ (png|jpg|jpeg|jpe|svg|gif) ]]; then ascii_data="$(< "$image_source")" else err "Ascii: Ascii file not found, using distro ascii."