Update CFwarp.sh

This commit is contained in:
甬哥侃侃侃ygkkk 2023-03-28 04:45:24 +00:00
parent 7ce01b7567
commit 434e7f73e9
1 changed files with 15 additions and 4 deletions

View File

@ -86,10 +86,21 @@ fi
fi
[[ $(type -P yum) ]] && yumapt='yum -y' || yumapt='apt -y'
[[ $(type -P curl) ]] || (yellow "检测到curl未安装升级安装中" && $yumapt update;$yumapt install curl)
[[ $(type -P bc) ]] || ($yumapt update;$yumapt install bc)
[[ ! $(type -P qrencode) ]] && ($yumapt update;$yumapt install qrencode)
[[ ! $(type -P python3) ]] && (yellow "检测到python3未安装升级安装中" && $yumapt update;$yumapt install python3)
if [[ ! $(type -P curl) ]]; then
$yumapt update;$yumapt install curl
fi
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() {
result=`curl --connect-timeout 5 -4sSL "https://www.netflix.com/" 2>&1`