File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ import { join } from "path";
44import { spawn } from "child_process" ;
55import { env } from "~/env" ;
66import { existsSync , createWriteStream } from "fs" ;
7+ import stripAnsi from "strip-ansi" ;
78
89interface GitHubRelease {
910 tag_name : string ;
@@ -141,7 +142,9 @@ export const versionRouter = createTRPCRouter({
141142 }
142143
143144 const logs = await readFile ( logPath , 'utf-8' ) ;
144- const logLines = logs . split ( '\n' ) . filter ( line => line . trim ( ) ) ;
145+ const logLines = logs . split ( '\n' )
146+ . filter ( line => line . trim ( ) )
147+ . map ( line => stripAnsi ( line ) ) ; // Strip ANSI color codes
145148
146149 // Check if update is complete by looking for completion indicators
147150 const isComplete = logLines . some ( line =>
You can’t perform that action at this time.
0 commit comments