1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-06-27 01:45:23 +00:00
This commit is contained in:
Darien Raymond 2018-06-08 15:53:06 +02:00
parent 3620ebfc11
commit e7d3b282ae
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169

View File

@ -137,7 +137,7 @@ installSoftware(){
return 0
}
# return 1: not apt or yum
# return 1: not apt, yum, or zypper
getPMT(){
if [[ -n `command -v apt-get` ]];then
CMD_INSTALL="apt-get -y -qq install"
@ -145,6 +145,9 @@ getPMT(){
elif [[ -n `command -v yum` ]]; then
CMD_INSTALL="yum -y -q install"
CMD_UPDATE="yum -q makecache"
elif [ -n `command -v zypper` ];then
CMD_INSTALL="zypper -y install"
CMD_UPDATE="zypper ref"
else
return 1
fi