mirror of
https://github.com/EasyTier/EasyTier.git
synced 2025-09-26 20:51:17 +08:00
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:
@@ -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"
|
||||
|
Reference in New Issue
Block a user