This commit is contained in:
Nikita Ivanov 2022-05-31 22:53:42 +05:00
parent 6717a5f62e
commit 5f0a224d17
No known key found for this signature in database
GPG Key ID: 6E656AC5B97B5133

View File

@ -23,7 +23,7 @@ exists() {
command -v "$1" > /dev/null command -v "$1" > /dev/null
} }
check_exist() { check_exists() {
[ $? = 127 ] && exit 127 [ $? = 127 ] && exit 127
} }
@ -38,7 +38,7 @@ send_image() {
convert_and_show_image() { convert_and_show_image() {
setup_fifo setup_fifo
cache || "$@" || check_exist cache || "$@" || check_exists
send_image "$cache_f" send_image "$cache_f"
exit 1 exit 1
} }