Skip to content

Commit

Permalink
Polished 1.6 a bit. Last minute changes
Browse files Browse the repository at this point in the history
  • Loading branch information
xplshn committed Apr 13, 2024
1 parent 1a68773 commit 41a2305
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions run.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

Expand Down

0 comments on commit 41a2305

Please sign in to comment.