Repo // Fix an issue with shell().

This commit is contained in:
ShikiSuen 2022-12-19 21:53:06 +08:00
parent 21c55f6b5b
commit 9f8338acbf
2 changed files with 4 additions and 0 deletions

View File

@ -162,6 +162,8 @@ class AppDelegate: NSWindowController, NSApplicationDelegate {
if #available(macOS 10.13, *) {
try task.run()
} else {
task.launch()
}
let data = pipe.fileHandleForReading.readDataToEndOfFile()

View File

@ -41,6 +41,8 @@ extension NSApplication {
if #available(macOS 10.13, *) {
try task.run()
} else {
task.launch()
}
let data = pipe.fileHandleForReading.readDataToEndOfFile()