Commit ef3199f0 authored by shaw's avatar shaw
Browse files

fix: 修复脚本的一些参数问题

parent e440530a
...@@ -107,7 +107,7 @@ sudo journalctl -u sub2api -f ...@@ -107,7 +107,7 @@ sudo journalctl -u sub2api -f
sudo systemctl restart sub2api sudo systemctl restart sub2api
# Uninstall # 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
``` ```
--- ---
......
...@@ -107,7 +107,7 @@ sudo journalctl -u sub2api -f ...@@ -107,7 +107,7 @@ sudo journalctl -u sub2api -f
sudo systemctl restart sub2api 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
``` ```
--- ---
......
...@@ -683,7 +683,7 @@ uninstall() { ...@@ -683,7 +683,7 @@ uninstall() {
# If not interactive (piped), require -y flag or skip confirmation # If not interactive (piped), require -y flag or skip confirmation
if ! is_interactive; then if ! is_interactive; then
if [ "${FORCE_YES:-}" != "true" ]; 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 exit 1
fi fi
else else
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment