get_ascii: Do not parse file if it's an image file
This commit is contained in:
parent
17f2f5b2a6
commit
754ffe2fae
1 changed files with 1 additions and 1 deletions
2
neofetch
2
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."
|
||||
|
|
Loading…
Reference in a new issue