diff --git a/helpers.sh b/helpers.sh index 0f52c85..8891570 100644 --- a/helpers.sh +++ b/helpers.sh @@ -23,7 +23,7 @@ exists() { command -v "$1" > /dev/null } -check_exist() { +check_exists() { [ $? = 127 ] && exit 127 } @@ -38,7 +38,7 @@ send_image() { convert_and_show_image() { setup_fifo - cache || "$@" || check_exist + cache || "$@" || check_exists send_image "$cache_f" exit 1 }