Skip to content

Commit 42833b3

Browse files
committed
fix: clear system proxy during uninstall
1 parent f1589ee commit 42833b3

1 file changed

Lines changed: 3 additions & 7 deletions

File tree

uninstall.sh

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,29 +21,25 @@ for arg in "$@"; do
2121
esac
2222
done
2323

24-
# shellcheck source=scripts/core/common.sh
2524
source "$PROJECT_DIR/scripts/core/common.sh"
26-
# shellcheck source=scripts/core/runtime.sh
2725
source "$PROJECT_DIR/scripts/core/runtime.sh"
28-
# shellcheck source=scripts/core/config.sh
2926
source "$PROJECT_DIR/scripts/core/config.sh"
30-
# shellcheck source=scripts/init/systemd.sh
27+
source "$PROJECT_DIR/scripts/core/proxy.sh"
3128
source "$PROJECT_DIR/scripts/init/systemd.sh"
32-
# shellcheck source=scripts/init/systemd-user.sh
3329
source "$PROJECT_DIR/scripts/init/systemd-user.sh"
34-
# shellcheck source=scripts/init/script.sh
3530
source "$PROJECT_DIR/scripts/init/script.sh"
3631

3732
init_project_context "$PROJECT_DIR"
3833
load_env_if_exists
3934
detect_install_scope auto
4035

36+
system_proxy_disable || true
37+
clear_shell_proxy_persist_state || true
4138
service_stop || true
4239
remove_runtime_entry || true
4340
remove_clashctl_entry || true
4441
remove_clashctl_completion || true
4542
remove_shell_alias_entry || true
46-
clear_shell_proxy_persist_state || true
4743

4844
if [ "$PURGE_RUNTIME" = "true" ]; then
4945
rm -rf "$RUNTIME_DIR"

0 commit comments

Comments
 (0)