mirror of
https://github.com/nicoverbruggen/phpmon.git
synced 2025-08-07 03:50:08 +02:00
✨ Check if /usr/local/bin
helper is writable
This commit is contained in:
@ -7,12 +7,22 @@
|
||||
//
|
||||
|
||||
import Foundation
|
||||
import Cocoa
|
||||
|
||||
class WarningManager {
|
||||
|
||||
static var shared = WarningManager()
|
||||
|
||||
public let evaluations: [Warning] = [
|
||||
Warning(
|
||||
command: {
|
||||
!FileManager.default.isWritableFile(atPath: "/usr/local/bin/pm81")
|
||||
},
|
||||
name: "`/usr/local/bin` not writable",
|
||||
titleText: "warnings.helper_permissions.title",
|
||||
descriptionText: "warnings.helper_permissions.description",
|
||||
url: nil
|
||||
),
|
||||
Warning(
|
||||
command: {
|
||||
return Shell.pipe("sysctl -n sysctl.proc_translated")
|
||||
@ -21,7 +31,7 @@ class WarningManager {
|
||||
name: "Running PHP Monitor with Rosetta on M1",
|
||||
titleText: "warnings.arm_compatibility.title",
|
||||
descriptionText: "warnings.arm_compatibility.description",
|
||||
url: nil
|
||||
url: "https://github.com/nicoverbruggen/phpmon/wiki/PHP-Monitor-and-Apple-Silicon"
|
||||
)
|
||||
]
|
||||
|
||||
|
Reference in New Issue
Block a user