mirror of
https://github.com/dylanaraps/neofetch.git
synced 2025-10-04 09:08:38 +00:00
ascii: Fixed bug causing ascii files to not work.
This commit is contained in:
5
neofetch
5
neofetch
@@ -3454,9 +3454,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")"
|
||||||
|
elif [[ $image_source == ascii || $image_source == auto ]]; then
|
||||||
|
:
|
||||||
else
|
else
|
||||||
ascii_data="$image_source"
|
ascii_data="$image_source"
|
||||||
fi
|
fi
|
||||||
|
Reference in New Issue
Block a user