File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change 2727mkdir -p /tmp/hiddify/
2828chmod 600 /tmp/hiddify/
2929rm -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
3238chmod 700 /tmp/hiddify/*
3339
3440/tmp/hiddify/hiddify_installer.sh $@
You can’t perform that action at this time.
0 commit comments