Git Product home page Git Product logo

Comments (5)

atzlinux avatar atzlinux commented on May 22, 2024

v2raya.prerm
#!/bin/sh
before_remove() {
:
#!/bin/sh

systemctl disable v2raya || true
systemctl stop v2raya || true

}
这个脚本,#!/bin/sh 出现了两次哈

from v2raya.

atzlinux avatar atzlinux commented on May 22, 2024

v2raya.prerm
systemctl stop v2raya || true ,这个先执行比较好,先停止服务,再禁用。

其它脚本,也有 #!/bin/sh 出现多次的情况。

from v2raya.

mzz2017 avatar mzz2017 commented on May 22, 2024

描述问题
安装结束时出现的提示,有 -e 字符。

-e **************************************
-e * Congratulations! *
-e * HTTPS demo: https://v2raya.mzz.pub *
-e * HTTP demo: http://v.mzz.pub *
-e **************************************

预期结果
不希望出现 -e 这类控制字符

为了不同发行版shell的兼容性,echo使用-e参数以支持颜色,在一些echo实现中-e是多余的。
不知有无解决方案?

from v2raya.

atzlinux avatar atzlinux commented on May 22, 2024

from v2raya.

mzz2017 avatar mzz2017 commented on May 22, 2024

由于一些系统默认没有安装bash,如alpine,使用了保守方案

from v2raya.

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.