From 8b19fd78b9bb1ccee109016e3edb0458d9e9d1c4 Mon Sep 17 00:00:00 2001 From: windyday <63159472+CoverUp137@users.noreply.github.com> Date: Sun, 22 Jun 2025 02:20:23 +0800 Subject: [PATCH] Update xray.sh --- xray/xray.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/xray/xray.sh b/xray/xray.sh index 35cecef..0c6f3ed 100644 --- a/xray/xray.sh +++ b/xray/xray.sh @@ -231,10 +231,10 @@ Config() { ;; esac done - echo -n "Install UPX compress version?[n]: " - read xray_UPX + #echo -n "Install UPX compress version?[n]: " + #read xray_UPX fi - echo "$xray_UPX"|grep -qi '^y' && xray_UPX="upx" || xray_UPX="" + #echo "$xray_UPX"|grep -qi '^y' && xray_UPX="upx" || xray_UPX="" } GetAbi() { @@ -267,8 +267,8 @@ InstallFile() { mkdir -p "${xray_install_directory:=/usr/local/xray}" || Error "Create xray install directory failed." cd "$xray_install_directory" || Error "Create cns install directory failed." #install xray - #github_repo="https://github.com/CoverUp137/cns/releases/download/xray" - $download_tool_cmd xray "https://github.com/CoverUp137/cns/releases/download/xray/xray-linux-${machine}" || Error "xray download failed." + github_repo="https://github.com/CoverUp137/cns/releases/download/xray" + $download_tool_cmd xray "$github_repo/xray-linux-${machine}" || Error "xray download failed." $download_tool_cmd xray.init https://raw.githubusercontent.com/CoverUp137/cns/refs/heads/main/xray/xray.init || Error "xray.init download failed." [ -f '/etc/rc.common' ] && rcCommon='/etc/rc.common' sed -i "s~#!/bin/sh~#!$SHELL $rcCommon~" xray.init