mirror of
https://github.com/nicoverbruggen/phpmon.git
synced 2026-03-28 06:50:08 +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"
|
"warnings.helper_permissions.symlink"
|
||||||
] },
|
] },
|
||||||
url: "https://github.com/nicoverbruggen/phpmon/wiki/PHP-Monitor-helper-binaries",
|
url: "https://github.com/nicoverbruggen/phpmon/wiki/PHP-Monitor-helper-binaries",
|
||||||
fix: {
|
fix: Paths.shell == "/bin/zsh" ? {
|
||||||
// Add to PATH
|
// Add to PATH
|
||||||
await ZshRunCommand().addPhpMonitorPath()
|
await ZshRunCommand().addPhpMonitorPath()
|
||||||
// Finally, perform environment checks again
|
// Finally, perform environment checks again
|
||||||
await WarningManager.shared.checkEnvironment()
|
await WarningManager.shared.checkEnvironment()
|
||||||
}
|
} : nil
|
||||||
),
|
),
|
||||||
Warning(
|
Warning(
|
||||||
command: {
|
command: {
|
||||||
|
|||||||
Reference in New Issue
Block a user