Skip to content
This repository was archived by the owner on Aug 23, 2024. It is now read-only.

Commit 41a2305

Browse files
author
xplshn
committed
Polished 1.6 a bit. Last minute changes
1 parent 1a68773 commit 41a2305

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

run.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -143,17 +143,14 @@ func runBinary(binaryPath string, args []string, verboseMode bool) {
143143
return
144144
}
145145

146-
// Execute the temporary binary
147146
executeBinary(tempFile, args, verboseMode)
148-
149-
// Move the temporary binary back to its original name
150147
if err := os.Rename(tempFile, binaryPath); err != nil {
151148
fmt.Printf("failed to move temporary binary back to original name: %v\n", err)
152149
return
153150
}
154151
}
155152

156-
// Exit the program with the exit code from the executed binary
153+
// Exit the program with the exit code from the executed binary or 1 if we couldn't even get to the execution
157154
os.Exit(programExitCode)
158155
}
159156

0 commit comments

Comments
 (0)