openclawsetup 1.0.13 → 1.0.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/install.sh +7 -6
  2. package/package.json +1 -1
package/install.sh CHANGED
@@ -267,11 +267,12 @@ show_installed_info() {
267
267
 
268
268
  # 显示菜单并获取选择
269
269
  show_menu() {
270
- echo -e "${CYAN}\n请选择操作:${NC}"
271
- echo -e " ${YELLOW}1${NC}. 检查并更新 OpenClaw"
272
- echo -e " ${YELLOW}2${NC}. 卸载后重新安装(会清除配置)"
273
- echo -e " ${YELLOW}0${NC}. 退出"
274
- echo ""
270
+ # 菜单输出到 stderr,避免被 $() 捕获
271
+ echo -e "${CYAN}\n请选择操作:${NC}" >&2
272
+ echo -e " ${YELLOW}1${NC}. 检查并更新 OpenClaw" >&2
273
+ echo -e " ${YELLOW}2${NC}. 卸载后重新安装(会清除配置)" >&2
274
+ echo -e " ${YELLOW}0${NC}. 退出" >&2
275
+ echo "" >&2
275
276
 
276
277
  # 从 /dev/tty 读取,支持管道环境
277
278
  if [ -t 0 ]; then
@@ -279,7 +280,7 @@ show_menu() {
279
280
  read -p "请输入选项编号: " choice
280
281
  else
281
282
  # 管道环境,从 /dev/tty 读取
282
- echo -n "请输入选项编号: "
283
+ echo -n "请输入选项编号: " >&2
283
284
  read choice < /dev/tty
284
285
  fi
285
286
  echo "$choice"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "openclawsetup",
3
- "version": "1.0.13",
3
+ "version": "1.0.14",
4
4
  "description": "一键安装 OpenClaw - 自动完成基础部署,无需交互",
5
5
  "type": "module",
6
6
  "bin": {