From cc93cb4dbe4f123ed08ecb67ea85d10a96eef07e Mon Sep 17 00:00:00 2001 From: JieXu Date: Thu, 26 Feb 2026 13:19:29 +0800 Subject: [PATCH] Update package-rhel.sh --- package-rhel.sh | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/package-rhel.sh b/package-rhel.sh index 1843c850..55dfb882 100644 --- a/package-rhel.sh +++ b/package-rhel.sh @@ -323,11 +323,9 @@ download_v2rayn_bundle() { curl -fL "$url" -o "$zipname" || { echo "[!] Bundle download failed"; return 1; } unzip -q "$zipname" -d "$tmp" || { echo "[!] Bundle unzip failed"; return 1; } - if [[ -d "$tmp/bin" ]]; then - mkdir -p "$outroot/bin" - rsync -a "$tmp/bin/" "$outroot/bin/" - else - rsync -a "$tmp/" "$outroot/" + if [[ -d "$tmp"/v2rayN-linux-*/bin ]]; then + mkdir -p "$outroot/bin" + rsync -a "$tmp"/v2rayN-linux-*/bin/ "$outroot/bin/" fi rm -f "$outroot/v2rayn.zip" 2>/dev/null || true