fix: clear system proxy during uninstall

This commit is contained in:
wnlen
2026-04-29 16:51:45 +08:00
parent f1589ee322
commit 42833b3ccb
+3 -7
View File
@@ -21,29 +21,25 @@ for arg in "$@"; do
esac
done
# shellcheck source=scripts/core/common.sh
source "$PROJECT_DIR/scripts/core/common.sh"
# shellcheck source=scripts/core/runtime.sh
source "$PROJECT_DIR/scripts/core/runtime.sh"
# shellcheck source=scripts/core/config.sh
source "$PROJECT_DIR/scripts/core/config.sh"
# shellcheck source=scripts/init/systemd.sh
source "$PROJECT_DIR/scripts/core/proxy.sh"
source "$PROJECT_DIR/scripts/init/systemd.sh"
# shellcheck source=scripts/init/systemd-user.sh
source "$PROJECT_DIR/scripts/init/systemd-user.sh"
# shellcheck source=scripts/init/script.sh
source "$PROJECT_DIR/scripts/init/script.sh"
init_project_context "$PROJECT_DIR"
load_env_if_exists
detect_install_scope auto
system_proxy_disable || true
clear_shell_proxy_persist_state || true
service_stop || true
remove_runtime_entry || true
remove_clashctl_entry || true
remove_clashctl_completion || true
remove_shell_alias_entry || true
clear_shell_proxy_persist_state || true
if [ "$PURGE_RUNTIME" = "true" ]; then
rm -rf "$RUNTIME_DIR"