mirror of
https://github.com/dylanaraps/neofetch.git
synced 2025-12-16 08:57:13 +00:00
Merge branch 'ascii-image'
This commit is contained in:
2
neofetch
2
neofetch
@@ -3410,7 +3410,7 @@ image_backend() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
get_ascii() {
|
get_ascii() {
|
||||||
if [[ -f "$image_source" ]]; then
|
if [[ -f "$image_source" && ! "$image_source" =~ (png|jpg|jpeg|jpe|svg|gif) ]]; then
|
||||||
ascii_data="$(< "$image_source")"
|
ascii_data="$(< "$image_source")"
|
||||||
else
|
else
|
||||||
err "Ascii: Ascii file not found, using distro ascii."
|
err "Ascii: Ascii file not found, using distro ascii."
|
||||||
|
|||||||
Reference in New Issue
Block a user