Update uninstall.sh

This commit is contained in:
wnlen
2026-03-17 01:41:46 +08:00
parent b7d42c8b0e
commit a61a106882

View File

@ -129,19 +129,19 @@ for d in "/root/clash-for-linux" "/opt/clash-for-linux" "${INSTALL_DIR:-}"; do
done done
# 5) remove install dirs # 5) remove install dirs
# removed_any=false removed_any=false
# for d in "${INSTALL_DIR:-}" "/root/clash-for-linux" "/opt/clash-for-linux"; do for d in "${INSTALL_DIR:-}" "/root/clash-for-linux" "/opt/clash-for-linux"; do
# [ -n "$d" ] || continue [ -n "$d" ] || continue
# if [ -d "$d" ] && { [ -f "$d/start.sh" ] || [ -d "$d/conf" ] || [ "$d" = "$INSTALL_DIR" ]; }; then if [ -d "$d" ] && { [ -f "$d/start.sh" ] || [ -d "$d/conf" ] || [ "$d" = "$INSTALL_DIR" ]; }; then
# rm -rf "$d" rm -rf "$d"
# ok "已移除安装目录: $d" ok "已移除安装目录: $d"
# removed_any=true removed_any=true
# fi fi
# done done
# if [ "$removed_any" = false ]; then if [ "$removed_any" = false ]; then
# warn "未发现可删除的安装目录" warn "未发现可删除的安装目录"
# fi fi
echo echo
warn "如果你曾执行 proxy_on当前终端可能仍保留代理环境变量。可执行" warn "如果你曾执行 proxy_on当前终端可能仍保留代理环境变量。可执行"