优化
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
|
||||
# OpenClaw 一键安装与管理脚本
|
||||
# 兼容 Debian / Ubuntu
|
||||
# 官方文档: https://docs.openclaw.app
|
||||
# 官方文档: https://openclaw.ai/
|
||||
|
||||
# 颜色定义
|
||||
RED='\033[0;31m'
|
||||
@@ -302,8 +302,7 @@ uninstall() {
|
||||
systemctl daemon-reload
|
||||
|
||||
npm uninstall -g openclaw
|
||||
npm uninstall -g moltbot # 尝试卸载旧包
|
||||
npm uninstall -g clawdbot # 尝试卸载旧包
|
||||
npm uninstall -g clawdbot
|
||||
rm -rf "${CONFIG_DIR}"
|
||||
|
||||
log_info "OpenClaw 已卸载。"
|
||||
|
||||
@@ -445,7 +445,6 @@ uninstall() {
|
||||
rm -f "${PLIST_PATH}"
|
||||
npm uninstall -g openclaw
|
||||
npm uninstall -g clawdbot
|
||||
npm uninstall -g moltbot
|
||||
rm -rf "${CONFIG_DIR}"
|
||||
log_info "OpenClaw 已卸载。"
|
||||
}
|
||||
|
||||
Binary file not shown.
@@ -1085,7 +1085,7 @@ func UninstallOpenclaw() error {
|
||||
return err
|
||||
}
|
||||
|
||||
packages := []string{"openclaw", "clawdbot", "moltbot"}
|
||||
packages := []string{"openclaw", "clawdbot"}
|
||||
for _, pkg := range packages {
|
||||
cmd := exec.Command(npmPath, "uninstall", "-g", pkg)
|
||||
cmd.Stdout = nil
|
||||
@@ -1100,9 +1100,6 @@ func UninstallOpenclaw() error {
|
||||
|
||||
legacyDir := filepath.Join(userHome, ".clawdbot")
|
||||
os.RemoveAll(legacyDir)
|
||||
|
||||
legacyDir2 := filepath.Join(userHome, ".moltbot")
|
||||
os.RemoveAll(legacyDir2)
|
||||
}
|
||||
|
||||
return nil
|
||||
|
||||
Reference in New Issue
Block a user