Skip to content

Commit c48a6eb

Browse files
committed
Switch to less spammy check of docker installed
1 parent a5d0a6e commit c48a6eb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Ace Link/AppDelegate.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class AppDelegate: NSObject, NSApplicationDelegate {
2626
}
2727

2828
func application(_: NSApplication, open urls: [URL]) {
29-
if Process.runCommand("docker").terminationStatus != 0 {
29+
if Process.runCommand("docker", "--version").terminationStatus != 0 {
3030
return
3131
}
3232
if let url = urls.first, let stream = ExtractStream.from(applicationURL: url) {

Ace Link/Menu/MainMenu.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ class MainMenu: NSMenu {
4545
}
4646

4747
override func update() {
48-
let canPlay = Process.runCommand("docker").terminationStatus == 0
48+
let canPlay = Process.runCommand("docker", "--version").terminationStatus == 0
4949
for menu in partialMenus {
5050
menu.update(canPlay: canPlay)
5151
}

0 commit comments

Comments
 (0)