From b31996230d64c33163202c49a6a02174b0c8cd9b Mon Sep 17 00:00:00 2001 From: Li Yang <63987506+liyang8246@users.noreply.github.com> Date: Mon, 7 Oct 2024 23:23:44 +0800 Subject: [PATCH] add curl dependency check in the installation script (#391) In many Linux containers, curl is not installed by default, just like unzip. --- script/install.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/script/install.sh b/script/install.sh index dfa76bb..ac8488d 100644 --- a/script/install.sh +++ b/script/install.sh @@ -55,6 +55,12 @@ if ! command -v unzip >/dev/null 2>&1; then exit 1 fi +# check if curl is installed +if ! command -v curl >/dev/null 2>&1; then + echo -e "\r\n${RED_COLOR}Error: curl is not installed${RES}\r\n" + exit 1 +fi + echo -e "\r\n${RED_COLOR}----------------------NOTICE----------------------${RES}\r\n" echo " This is a temporary script to install EasyTier " echo " EasyTier requires a dedicated empty folder to install"