Improve Xray Proxy Management and Configuration
- Added 'remove' subcommand for Xray proxy - Enhanced VMESS installation with V2rayNG config generation - Updated Xray installation process with improved error handling - Modified vmess template to separate Clash and V2rayNG configurations - Fixed command existence check in PackageOperator
This commit is contained in:
@@ -220,8 +220,12 @@ func CommandExists(command string) bool {
|
||||
func CommandExistsByPath(command string) bool {
|
||||
|
||||
// 查询 /usr/bin /usr/local/bin中是否有可执行文件
|
||||
ok, _ := SingleLineCommandExecutor([]string{"find", "/usr/bin", "/usr/local/bin", "-name", command})
|
||||
return ok
|
||||
_, result := SingleLineCommandExecutor([]string{"find", "/usr/bin", "/usr/local/bin", "-name", command})
|
||||
if result == nil || len(result) == 0 {
|
||||
return false
|
||||
}
|
||||
|
||||
return true
|
||||
}
|
||||
|
||||
func beautifulPrintListWithTitle(contend []string, title string) {
|
||||
|
||||
Reference in New Issue
Block a user