mirror of
https://github.com/coteditor/CotEditor.git
synced 2024-09-11 11:25:57 +03:00
Fix UnixScript execution (fix #1287)
This commit is contained in:
parent
b882740ada
commit
7116315851
@ -11,6 +11,11 @@ Change Log
|
||||
- [beta][trivial] Optimize the performance of the Warnings pane.
|
||||
|
||||
|
||||
### Fixes
|
||||
|
||||
- [beta] Fix an issue that UNIX scripts did not terminate.
|
||||
|
||||
|
||||
|
||||
4.2.0-beta (491)
|
||||
--------------------------
|
||||
|
@ -129,6 +129,7 @@ final class UnixScript: Script {
|
||||
for chunk in data.components(length: 65_536) {
|
||||
handle.write(chunk)
|
||||
}
|
||||
handle.closeFile()
|
||||
|
||||
// inPipe must avoid releasing before `writeabilityHandler` is invocated
|
||||
inPipe.fileHandleForWriting.writeabilityHandler = nil
|
||||
|
Loading…
Reference in New Issue
Block a user