Skip to content

Commit

Permalink
WhiskyCmd: fix the run command
Browse files Browse the repository at this point in the history
  • Loading branch information
kkHAIKE committed Dec 19, 2024
1 parent ce04b25 commit fe5a62c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions WhiskyCmd/Main.swift
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,7 @@ extension Whisky {
let url = URL(fileURLWithPath: path)
let program = Program(url: url, bottle: bottle)
program.runInTerminal()
RunLoop.main.run()
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ extension Program {
}

public func runInTerminal() {
let wineCmd = generateTerminalCommand().replacingOccurrences(of: "\\", with: "\\\\")
let wineCmd = generateTerminalCommand().replacingOccurrences(of: "\\", with: "\\\\").replacingOccurrences(of: "\"", with: "\\\"")

Check failure on line 56 in WhiskyKit/Sources/WhiskyKit/Extensions/Program+Extensions.swift

View workflow job for this annotation

GitHub Actions / SwiftLint

Line Length Violation: Line should be 120 characters or less; currently it has 137 characters (line_length)

let script = """
tell application "Terminal"
Expand Down

0 comments on commit fe5a62c

Please sign in to comment.