Fix use of zsh in our tools.

This commit is contained in:
Doug
2023-03-30 18:17:32 +01:00
committed by Mauro
parent 8aca9ba85b
commit 045972abe1

View File

@@ -20,7 +20,7 @@ enum Utilities {
static func zsh(_ command: String, workingDirectoryURL: URL = projectDirectoryURL) throws -> String? { static func zsh(_ command: String, workingDirectoryURL: URL = projectDirectoryURL) throws -> String? {
let process = Process() let process = Process()
process.executableURL = URL(filePath: "/bin/zsh") process.executableURL = URL(filePath: "/bin/zsh")
process.arguments = ["-c", command] process.arguments = ["-cu", command]
process.currentDirectoryURL = workingDirectoryURL process.currentDirectoryURL = workingDirectoryURL
let outputPipe = Pipe() let outputPipe = Pipe()