mirror of https://gitlab.com/rwkgyg/CFwarp.git
Update CFwarp.sh
This commit is contained in:
parent
7ce01b7567
commit
434e7f73e9
19
CFwarp.sh
19
CFwarp.sh
|
@ -86,10 +86,21 @@ fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
[[ $(type -P yum) ]] && yumapt='yum -y' || yumapt='apt -y'
|
[[ $(type -P yum) ]] && yumapt='yum -y' || yumapt='apt -y'
|
||||||
[[ $(type -P curl) ]] || (yellow "检测到curl未安装,升级安装中" && $yumapt update;$yumapt install curl)
|
if [[ ! $(type -P curl) ]]; then
|
||||||
[[ $(type -P bc) ]] || ($yumapt update;$yumapt install bc)
|
$yumapt update;$yumapt install curl
|
||||||
[[ ! $(type -P qrencode) ]] && ($yumapt update;$yumapt install qrencode)
|
fi
|
||||||
[[ ! $(type -P python3) ]] && (yellow "检测到python3未安装,升级安装中" && $yumapt update;$yumapt install python3)
|
if [[ ! $(type -P bc) ]]; then
|
||||||
|
$yumapt update;$yumapt install bc
|
||||||
|
fi
|
||||||
|
if [[ ! $(type -P qrencode) ]]; then
|
||||||
|
$yumapt update;$yumapt install qrencode
|
||||||
|
fi
|
||||||
|
if [[ ! $(type -P python3) ]]; then
|
||||||
|
$yumapt update;$yumapt install python3
|
||||||
|
fi
|
||||||
|
if [[ ! $(type -P cron) ]]; then
|
||||||
|
$yumapt update;apt install cron -y;yum install cronie -y
|
||||||
|
fi
|
||||||
|
|
||||||
nf4() {
|
nf4() {
|
||||||
result=`curl --connect-timeout 5 -4sSL "https://www.netflix.com/" 2>&1`
|
result=`curl --connect-timeout 5 -4sSL "https://www.netflix.com/" 2>&1`
|
||||||
|
|
Loading…
Reference in New Issue