Skip to content

Commit ebfffaf

Browse files
committed
fix: update script
1 parent f492489 commit ebfffaf

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

hiddify-panel/src

Submodule src updated from c24ee0a to b460143

update.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,27 +43,31 @@ function main() {
4343
echo "Creating a backup ..."
4444
./hiddify-panel/backup.sh
4545

46+
update_script="https://raw.githubusercontent.com/hiddify/Hiddify-Manager/refs/heads/main/common/download.sh"
4647
case "$package_mode" in
4748
develop)
4849
# Use the latest commit from GitHub
4950
latest_panel=$(get_commit_version Hiddify-Panel)
5051
latest_manager=$(get_commit_version hiddify-manager)
52+
update_script="https://raw.githubusercontent.com/hiddify/Hiddify-Manager/refs/heads/dev/common/download.sh"
5153
;;
5254
beta)
5355
latest_panel=$(get_pre_release_version hiddify-panel)
5456
latest_manager=$(get_pre_release_version hiddify-manager)
57+
update_script="https://raw.githubusercontent.com/hiddify/Hiddify-Manager/refs/heads/beta/common/download.sh"
5558
;;
5659
release)
5760
latest_panel=$(get_release_version hiddify-panel)
5861
latest_manager=$(get_release_version hiddify-manager)
62+
update_script="https://raw.githubusercontent.com/hiddify/Hiddify-Manager/refs/heads/main/common/download.sh"
5963
;;
6064
esac
6165

6266
[[ "$latest_panel" != "$current_panel_version" ]] && panel_update=1
6367
[[ "$latest_manager" != "$current_config_version" ]] && manager_update=1
6468
echo "$package_mode Latest panel version: $latest_panel Installed: $current_panel_version Lastest manager version: $latest_manager Installed: $current_config_version"
6569
if [[ "$force" == "true" || $panel_update == 1 || $manager_update == 1 ]]; then
66-
bash <(curl -sSL https://raw.githubusercontent.com/hiddify/hiddify-config/main/common/download.sh) "$package_mode" "$force" "--no-gui" "--no-log"
70+
bash <(curl -sSL $update_script) "$package_mode" "$force" "--no-gui" "--no-log"
6771
else
6872
echo "Nothing to update"
6973
fi

0 commit comments

Comments
 (0)