Coder Social home page Coder Social logo

建议在安装脚本前置检查curl是否安装-【结论:2.03已有curl命令的检测,没有的话会安装】 about warp HOT 2 CLOSED

fscarmen avatar fscarmen commented on July 26, 2024
建议在安装脚本前置检查curl是否安装-【结论:2.03已有curl命令的检测,没有的话会安装】

from warp.

Comments (2)

fscarmen avatar fscarmen commented on July 26, 2024

谢谢你的反馈,这个问题已经收到
最新的 V2.02 我在一开始检查系统状态的时候的时候加入 curl 的检测,没有的话会安装,这时vps还处于原来的网络状态,所以应该是能安装到的,具体如下

[[ ! $(type -P curl) ]] &&
( echo " 安装curl中…… " && (apt -y install curl >/dev/null 2>&1 || yum -y install curl >/dev/null 2>&1) ||
( echo " 先升级系统才能继续安装 curl,稍等…… " && apt -y update >/dev/null 2>&1 && apt -y install curl >/dev/null 2>&1 ||
( yum -y update >/dev/null 2>&1 && yum -y install curl >/dev/null 2>&1 ||
( echo " 安装 curl 失败,脚本中止,问题反馈:[https://github.com/fscarmen/warp/issues] " && exit ))))

另外我已经在2.03对刷网络作了优化,加快了两次尝试之间的间隔时间,不会出现死循环,因为已经限制次数,暂定为10次,脚本中有个 j 变量来改的,有明确的提示

现还在观察替代 WireGuard-GO 的 BoringTun 是否稳定,可以的话,我今晚更新上去。

image

from warp.

fscarmen avatar fscarmen commented on July 26, 2024

脚本版本:V2.0.3,测试VPS:Euserv Ubuntu 20.04

脚本先判断是否有curl指令,没有就安装 apt install curl ,再没有就先升级软件包然后安装 apt udate && apt install curl
以上都不成功会弹提示并中止脚本

from warp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.