[PR #55] [MERGED] fix(installer): display newline instead of literal \n in gum header #56

Closed
opened 2026-02-15 17:17:29 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/openclaw/openclaw.ai/pull/55
Author: @echoja
Created: 2/12/2026
Status: Merged
Merged: 2/12/2026
Merged by: @steipete

Base: mainHead: fix/install-newline-literal


📝 Commits (2)

  • 95e0d16 fix(installer): use real newline instead of literal \n in gum header
  • 6b6cacd docs: update changelog for PR #55 landing (thanks @echoja)

📊 Changes

2 files changed (+6 additions, -1 deletions)

View changed files

📝 CHANGELOG.md (+4 -0)
📝 public/install.sh (+2 -1)

📄 Description

Summary

  • Fixed a bug where \n was displayed as a literal string instead of a newline in the gum choose --header prompt
  • When running install.sh inside an existing OpenClaw checkout, the header showed Detected OpenClaw checkout in: /path\nChoose install method instead of splitting into two lines
  • Replaced the escaped \n in a bash double-quoted string with an actual newline character

Test plan

  • Unit tests pass (scripts/test-install-sh-unit.sh)
  • Dry-run smoke test pass (bash public/install.sh --dry-run --no-onboard --no-prompt)

🤖 Generated with Claude Code


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/openclaw/openclaw.ai/pull/55 **Author:** [@echoja](https://github.com/echoja) **Created:** 2/12/2026 **Status:** ✅ Merged **Merged:** 2/12/2026 **Merged by:** [@steipete](https://github.com/steipete) **Base:** `main` ← **Head:** `fix/install-newline-literal` --- ### 📝 Commits (2) - [`95e0d16`](https://github.com/openclaw/openclaw.ai/commit/95e0d16e90d220917117450aa5f649bfb4568470) fix(installer): use real newline instead of literal \n in gum header - [`6b6cacd`](https://github.com/openclaw/openclaw.ai/commit/6b6cacdd72022fd8e29157fbaacdb1b6174df80a) docs: update changelog for PR #55 landing (thanks @echoja) ### 📊 Changes **2 files changed** (+6 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+4 -0) 📝 `public/install.sh` (+2 -1) </details> ### 📄 Description ## Summary - Fixed a bug where `\n` was displayed as a literal string instead of a newline in the `gum choose --header` prompt - When running `install.sh` inside an existing OpenClaw checkout, the header showed `Detected OpenClaw checkout in: /path\nChoose install method` instead of splitting into two lines - Replaced the escaped `\n` in a bash double-quoted string with an actual newline character ## Test plan - [x] Unit tests pass (`scripts/test-install-sh-unit.sh`) - [x] Dry-run smoke test pass (`bash public/install.sh --dry-run --no-onboard --no-prompt`) 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-15 17:17:29 -05:00
yindo closed this issue 2026-02-15 17:17:29 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: openclaw/openclaw.ai#56