Skip to content

Commit 585c41d

Browse files
committed
Merge branch 'dev' into beta
2 parents 965e2d0 + 8182cd6 commit 585c41d

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

common/download.sh

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,14 @@ fi
2727
mkdir -p /tmp/hiddify/
2828
chmod 600 /tmp/hiddify/
2929
rm -rf /tmp/hiddify/*
30-
curl -sL -o /tmp/hiddify/hiddify_installer.sh https://raw.githubusercontent.com/hiddify/Hiddify-Manager/main/common/hiddify_installer.sh
31-
curl -sL -o /tmp/hiddify/utils.sh https://raw.githubusercontent.com/hiddify/Hiddify-Manager/main/common/utils.sh
30+
31+
if [[ "$1" == v* ]]; then
32+
base_url=https://raw.githubusercontent.com/hiddify/Hiddify-Manager/refs/tags/$1/
33+
else
34+
base_url=https://raw.githubusercontent.com/hiddify/Hiddify-Manager/refs/heads/$1/
35+
fi
36+
curl -sL -o /tmp/hiddify/hiddify_installer.sh $base_url/common/hiddify_installer.sh
37+
curl -sL -o /tmp/hiddify/utils.sh $base_url/common/utils.sh
3238
chmod 700 /tmp/hiddify/*
3339

3440
/tmp/hiddify/hiddify_installer.sh $@

0 commit comments

Comments
 (0)