Skip to content

Commit a837ef4

Browse files
fix(installer): remove orphaned duplicate help text causing 15 PS1 parse errors
Lines 40-54 were a leftover copy of the help here-string body without an opening @" delimiter, causing the Validate CI workflow to fail with 15 PSParseError entries. Also fix undefined $agentName variable on the final status line (leftover from Command-Code-specific refactor).
1 parent 7e8f8c2 commit a837ef4

1 file changed

Lines changed: 1 addition & 16 deletions

File tree

install.ps1

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -37,21 +37,6 @@ Requires:
3737
"@
3838
return
3939
}
40-
.\install.ps1 -Quiet Silent install (no prompts; auto-installs RTK)
41-
.\install.ps1 -NoRtk Do not install the RTK binary, only the instructions
42-
iwr <raw>/install.ps1 | iex Install directly from the web
43-
44-
What it does:
45-
1. Installs the RTK binary from its latest GitHub release if rtk is missing
46-
2. Installs AGENTS.md + references\ to ~\.commandcode\
47-
(copies sibling files when run from a clone, otherwise downloads them)
48-
3. Confirms Command Code CLI will read the instructions
49-
50-
Requires:
51-
- Command Code CLI (cmd, cmdc, or command-code in PATH)
52-
"@
53-
return
54-
}
5540

5641
# --- Helpers ---
5742
function Write-Step($msg) { Write-Host " => $msg" -ForegroundColor Cyan }
@@ -182,7 +167,7 @@ if ($testContent -match "RTK") {
182167
Write-Host ""
183168
Write-Host "Installation complete!" -ForegroundColor Green
184169
Write-Host ""
185-
Write-Host " RTK instructions installed for $agentName."
170+
Write-Host " RTK instructions installed for $(if ($Agent) { $Agent } else { "your agent" })."
186171
Write-Host " Restart any active agent sessions to apply."
187172
Write-Host ""
188173
Write-Host " Verify: rtk gain"

0 commit comments

Comments
 (0)