From 5f0a224d17b312f7ab6261d6605fe75fc2fb780d Mon Sep 17 00:00:00 2001 From: Nikita Ivanov Date: Tue, 31 May 2022 22:53:42 +0500 Subject: [PATCH] Minor --- helpers.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 }