mirror of
https://github.com/v2fly/v2ray-core.git
synced 2024-12-22 01:57:12 -05:00
fix #1141
This commit is contained in:
parent
3620ebfc11
commit
e7d3b282ae
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user