Merge branch 'ascii-image'

This commit is contained in:
Muhammad Herdiansyah 2018-09-05 18:29:26 +07:00
commit 02da9487fa

View file

@ -3410,7 +3410,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."