mirror of
https://github.com/nicoverbruggen/phpmon.git
synced 2025-11-05 04:20:06 +01:00
🐛 Only show autofix if shell is zsh
This commit is contained in:
@@ -52,12 +52,12 @@ class WarningManager: ObservableObject {
|
||||
"warnings.helper_permissions.symlink"
|
||||
] },
|
||||
url: "https://github.com/nicoverbruggen/phpmon/wiki/PHP-Monitor-helper-binaries",
|
||||
fix: {
|
||||
fix: Paths.shell == "/bin/zsh" ? {
|
||||
// Add to PATH
|
||||
await ZshRunCommand().addPhpMonitorPath()
|
||||
// Finally, perform environment checks again
|
||||
await WarningManager.shared.checkEnvironment()
|
||||
}
|
||||
} : nil
|
||||
),
|
||||
Warning(
|
||||
command: {
|
||||
|
||||
Reference in New Issue
Block a user