From ef3199f0cac3b287d1cd303a17352996c7034876 Mon Sep 17 00:00:00 2001 From: shaw Date: Thu, 18 Dec 2025 17:25:26 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E8=84=9A=E6=9C=AC?= =?UTF-8?q?=E7=9A=84=E4=B8=80=E4=BA=9B=E5=8F=82=E6=95=B0=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 2 +- README_CN.md | 2 +- deploy/install.sh | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 6f2c3daa..79260584 100644 --- a/README.md +++ b/README.md @@ -107,7 +107,7 @@ sudo journalctl -u sub2api -f sudo systemctl restart sub2api # Uninstall -curl -sSL https://raw.githubusercontent.com/Wei-Shaw/sub2api/main/deploy/install.sh | sudo bash -s uninstall +curl -sSL https://raw.githubusercontent.com/Wei-Shaw/sub2api/main/deploy/install.sh | sudo bash -s -- uninstall -y ``` --- diff --git a/README_CN.md b/README_CN.md index ae9417c0..f7e8ecb1 100644 --- a/README_CN.md +++ b/README_CN.md @@ -107,7 +107,7 @@ sudo journalctl -u sub2api -f sudo systemctl restart sub2api # 卸载 -curl -sSL https://raw.githubusercontent.com/Wei-Shaw/sub2api/main/deploy/install.sh | sudo bash -s uninstall +curl -sSL https://raw.githubusercontent.com/Wei-Shaw/sub2api/main/deploy/install.sh | sudo bash -s -- uninstall -y ``` --- diff --git a/deploy/install.sh b/deploy/install.sh index 96b46b26..948fa515 100644 --- a/deploy/install.sh +++ b/deploy/install.sh @@ -683,7 +683,7 @@ uninstall() { # If not interactive (piped), require -y flag or skip confirmation if ! is_interactive; then if [ "${FORCE_YES:-}" != "true" ]; then - print_error "Non-interactive mode detected. Use 'bash -s -- uninstall -y' to confirm." + print_error "Non-interactive mode detected. Use 'curl ... | bash -s -- uninstall -y' to confirm." exit 1 fi else