Skip to content

Commit 827a27c

Browse files
committed
fix(ralph-loop): correct log file line break escaping
Change printf format from '%s' to '%b' so that backslash escapes like newlines are interpreted correctly instead of written literally.
1 parent 5d5d1e4 commit 827a27c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ralph-loop.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ function log(message: string): void {
9191
const entry = `[${new Date().toISOString()}] ${message}\n`;
9292
process.stdout.write(entry);
9393
try {
94-
execSync(`printf '%s' ${JSON.stringify(entry)} >> ${LOG_FILE}`);
94+
execSync(`printf '%b' ${JSON.stringify(entry)} >> ${LOG_FILE}`);
9595
} catch {
9696
// Best-effort logging
9797
}

0 commit comments

Comments
 (0)