Merge branch 'ascii-image'

This commit is contained in:
Muhammad Herdiansyah 2018-09-05 18:29:26 +07:00
commit 02da9487fa
1 changed files with 1 additions and 1 deletions

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."