Image: If $image_source is set to ascii display a warning in -v

This commit is contained in:
Dylan Araps 2016-12-10 20:12:16 +11:00
parent a741929fd2
commit 1a815a3789

View file

@ -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})