mirror of
https://mirror.suhoan.cn/https://github.com/EasyTier/EasyTier.git
synced 2025-12-12 12:47:25 +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
|
exit 1
|
||||||
fi
|
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 -e "\r\n${RED_COLOR}----------------------NOTICE----------------------${RES}\r\n"
|
||||||
echo " This is a temporary script to install EasyTier "
|
echo " This is a temporary script to install EasyTier "
|
||||||
echo " EasyTier requires a dedicated empty folder to install"
|
echo " EasyTier requires a dedicated empty folder to install"
|
||||||
|
|||||||
Reference in New Issue
Block a user