mirror of
https://github.com/2dust/v2rayN.git
synced 2026-02-28 05:03:02 +00:00
Update package-rhel.sh
This commit is contained in:
parent
cc93cb4dbe
commit
311a18e72c
1 changed files with 5 additions and 3 deletions
|
|
@ -323,9 +323,11 @@ 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"/v2rayN-linux-*/bin ]]; then
|
||||
if [[ -d "$tmp/bin" ]]; then
|
||||
mkdir -p "$outroot/bin"
|
||||
rsync -a "$tmp"/v2rayN-linux-*/bin/ "$outroot/bin/"
|
||||
rsync -a "$tmp/bin/" "$outroot/bin/"
|
||||
else
|
||||
rsync -a "$tmp/" "$outroot/"
|
||||
fi
|
||||
|
||||
rm -f "$outroot/v2rayn.zip" 2>/dev/null || true
|
||||
|
|
|
|||
Loading…
Reference in a new issue