From 670eef2c30ad694fb1e461f63898e49e9f77f1f8 Mon Sep 17 00:00:00 2001 From: Aaron Johnon Date: Tue, 10 Aug 2021 00:01:57 -0500 Subject: [PATCH] Updated dependency check --- http_check_telegram | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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