Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
更新内容:
1.将所有exit改为return,并在适当的地方增加return,目的是增加脚本可读性
2.删除了不必要的return
3.修复部分缩进排版问题
4.检查新版本时增加检测本地是否安装的情况
5.copyFile功能简化
6.当/etc/v2ray/config.json存在时,不再生成/etc/v2ray文件夹
7.增加启动和停止服务失败的提醒
8.使用version参数时,不需要键入v,直接打版本号即可
9.少许逻辑及其他优化