From 41a2305a50eb3015eeedcaaf47490767845d2e44 Mon Sep 17 00:00:00 2001 From: xplshn Date: Sat, 13 Apr 2024 19:30:04 -0300 Subject: [PATCH] Polished 1.6 a bit. Last minute changes --- run.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/run.go b/run.go index 0c67218..72e0a32 100644 --- a/run.go +++ b/run.go @@ -143,17 +143,14 @@ func runBinary(binaryPath string, args []string, verboseMode bool) { return } - // Execute the temporary binary executeBinary(tempFile, args, verboseMode) - - // Move the temporary binary back to its original name if err := os.Rename(tempFile, binaryPath); err != nil { fmt.Printf("failed to move temporary binary back to original name: %v\n", err) return } } - // Exit the program with the exit code from the executed binary + // Exit the program with the exit code from the executed binary or 1 if we couldn't even get to the execution os.Exit(programExitCode) }