Skip to content

Commit 90b27fb

Browse files
authored
Merge pull request #557 from cybertec-postgresql/556-init-exit-code-is-always-an-error-4-not-0
[-] fix exit code for `--init` command, fixes #556
2 parents ef1ae68 + 78d2415 commit 90b27fb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ func SetupCloseHandler(cancel context.CancelFunc) {
3232
go func() {
3333
<-c
3434
cancel()
35+
exitCode = ExitCodeUserCancel
3536
}()
36-
exitCode = ExitCodeUserCancel
3737
}
3838

3939
const (

0 commit comments

Comments
 (0)