mirror of
https://github.com/dogkeeper886/ollama37.git
synced 2025-12-19 12:17:02 +00:00
Fix template literal syntax error in sed command
The dollar-brace in sed end-of-file pattern was interpreted as TypeScript template literal interpolation. Use escaped syntax to insert a literal dollar sign. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -219,7 +219,8 @@ export class LogCollector {
|
||||
sedCmd = `sed -n '/===MARKER:START:${escapedTestId}:/,/===MARKER:END:${escapedTestId}:/{/===MARKER:/d;p}' "${this.sessionFile}"`;
|
||||
} else {
|
||||
// Extract from START to EOF (test still running, no END marker yet)
|
||||
sedCmd = `sed -n '/===MARKER:START:${escapedTestId}:/,\\${/===MARKER:/d;p}' "${this.sessionFile}"`;
|
||||
// Note: Use ${'$'} to insert literal $ in template literal (avoids ${} interpolation)
|
||||
sedCmd = `sed -n '/===MARKER:START:${escapedTestId}:/,${'$'}{/===MARKER:/d;p}' "${this.sessionFile}"`;
|
||||
}
|
||||
|
||||
const result = execSync(sedCmd, {
|
||||
|
||||
Reference in New Issue
Block a user