mirror of
https://github.com/dylanaraps/neofetch.git
synced 2025-10-04 01:00:17 +00:00
Image: If $image_source is set to ascii display a warning in -v
This commit is contained in:
6
neofetch
6
neofetch
@@ -1898,6 +1898,12 @@ get_image_backend() {
|
|||||||
case "$image_source" in
|
case "$image_source" in
|
||||||
"wall"*) get_wallpaper 2>/dev/null ;;
|
"wall"*) get_wallpaper 2>/dev/null ;;
|
||||||
"off") image_backend="off"; return ;;
|
"off") image_backend="off"; return ;;
|
||||||
|
"ascii")
|
||||||
|
to_ascii "Image: \$image_source set to 'ascii', falling back to ascii mode. "
|
||||||
|
err "Image: Change \$image_source to another value to use image mode."
|
||||||
|
return
|
||||||
|
;;
|
||||||
|
|
||||||
*)
|
*)
|
||||||
if [[ -d "$image_source" ]]; then
|
if [[ -d "$image_source" ]]; then
|
||||||
files=("${image_source%/}"/*.{png,jpg,jpeg})
|
files=("${image_source%/}"/*.{png,jpg,jpeg})
|
||||||
|
Reference in New Issue
Block a user