mirror of
https://github.com/EasyTier/EasyTier.git
synced 2024-11-16 03:32:43 +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:
parent
1e836501a8
commit
b31996230d
|
@ -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"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user