Skip to content
This repository was archived by the owner on May 11, 2025. It is now read-only.

Commit fe5a62c

Browse files
committed
WhiskyCmd: fix the run command
1 parent ce04b25 commit fe5a62c

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

WhiskyCmd/Main.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,7 @@ extension Whisky {
176176
let url = URL(fileURLWithPath: path)
177177
let program = Program(url: url, bottle: bottle)
178178
program.runInTerminal()
179+
RunLoop.main.run()
179180
}
180181
}
181182

WhiskyKit/Sources/WhiskyKit/Extensions/Program+Extensions.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ extension Program {
5353
}
5454

5555
public func runInTerminal() {
56-
let wineCmd = generateTerminalCommand().replacingOccurrences(of: "\\", with: "\\\\")
56+
let wineCmd = generateTerminalCommand().replacingOccurrences(of: "\\", with: "\\\\").replacingOccurrences(of: "\"", with: "\\\"")
5757

5858
let script = """
5959
tell application "Terminal"

0 commit comments

Comments
 (0)