fix: 修复脚本的一些参数问题
This commit is contained in:
@@ -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
|
|||||||
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() {
|
|||||||
# 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
|
||||||
|
|||||||
Reference in New Issue
Block a user