mirror of
https://github.com/mas-cli/mas
synced 2024-11-22 03:23:08 +00:00
Explicitly flush instead of unbuffering stdout
This commit is contained in:
parent
493308abf9
commit
9c145ff146
2 changed files with 1 additions and 1 deletions
|
@ -58,6 +58,7 @@ func progress(state: ProgressState) {
|
|||
}
|
||||
}
|
||||
print("\(csi)2K\(csi)0G\(bar) \(state.percentage) \(state.phase)")
|
||||
fflush(stdout)
|
||||
}
|
||||
|
||||
extension SSDownloadStatus {
|
||||
|
|
|
@ -26,7 +26,6 @@ registry.register(ListInstalledCommand())
|
|||
registry.register(ListUpdatesCommand())
|
||||
registry.register(helpCommand)
|
||||
|
||||
setbuf(__stdoutp, nil)
|
||||
registry.main(defaultVerb: helpCommand.verb, errorHandler: { error in
|
||||
fputs(error.description + "\n", stderr)
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue