From 63ccdc4b5a24236496c7b2115d8216db205aa168 Mon Sep 17 00:00:00 2001 From: AKSHAT TANDON Date: Fri, 2 Feb 2024 16:21:39 +0100 Subject: [PATCH] curl is required --- sg-cli | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/sg-cli b/sg-cli index 86eeb0d..9ce57ed 100755 --- a/sg-cli +++ b/sg-cli @@ -23,6 +23,12 @@ if ! type jq >/dev/null 2>&1; then exit 2 fi +# check if curl command is installed +if ! type curl >/dev/null 2>&1; then + err "curl command is required" + exit 2 +fi + #{{{ Color Variables For `printf` readonly C_RED_BOLD="\033[1;31m" readonly C_RED="\033[0;31m"