diff --git a/http_check_telegram b/http_check_telegram index dff9293..6c1ffd3 100755 --- a/http_check_telegram +++ b/http_check_telegram @@ -9,7 +9,11 @@ alias sql="$SQL" # Check for dependencies if ! which $SQL >/dev/null 2>&1; then - printf '%s\n' "ERROR 12: Missing dependency -- '$sql' command not found." >&2 + printf '%s\n' "ERROR 12: Missing dependency -- '$SQL' command not found." >&2 + exit 12 +fi +if ! which curl >/dev/null 2>&1; then + printf '%s\n' "ERROR 12: Missing dependency -- 'curl' command not found." >&2 exit 12 fi