add curl dependency check in the installation script (#391)

In many Linux containers, curl is not installed by default, just like
unzip.
This commit is contained in:
Li Yang 2024-10-07 23:23:44 +08:00 committed by GitHub
parent 1e836501a8
commit b31996230d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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"