ascii: Fixed bug when files named auto or ascii were found.
This commit is contained in:
4
neofetch
4
neofetch
@@ -3417,10 +3417,10 @@ image_backend() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
get_ascii() {
|
get_ascii() {
|
||||||
|
[[ ! "$image_source" =~ (ascii|auto) ]] &&
|
||||||
if [[ -f "$image_source" && ! "$image_source" =~ (png|jpg|jpeg|jpe|svg|gif) ]]; then
|
if [[ -f "$image_source" && ! "$image_source" =~ (png|jpg|jpeg|jpe|svg|gif) ]]; then
|
||||||
ascii_data="$(< "$image_source")"
|
ascii_data="$(< "$image_source")"
|
||||||
|
else
|
||||||
elif [[ "$image_source" != "auto" ]]; then
|
|
||||||
ascii_data="$image_source"
|
ascii_data="$image_source"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user