mirror of
https://github.com/nicoverbruggen/phpmon.git
synced 2025-08-08 04:20:07 +02:00
👌 Cleanup
This commit is contained in:
@ -52,11 +52,7 @@
|
|||||||
</BuildableProductRunnable>
|
</BuildableProductRunnable>
|
||||||
<CommandLineArguments>
|
<CommandLineArguments>
|
||||||
<CommandLineArgument
|
<CommandLineArgument
|
||||||
argument = "use"
|
argument = "help"
|
||||||
isEnabled = "YES">
|
|
||||||
</CommandLineArgument>
|
|
||||||
<CommandLineArgument
|
|
||||||
argument = "8.1"
|
|
||||||
isEnabled = "YES">
|
isEnabled = "YES">
|
||||||
</CommandLineArgument>
|
</CommandLineArgument>
|
||||||
</CommandLineArguments>
|
</CommandLineArguments>
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
|
|
||||||
import Foundation
|
import Foundation
|
||||||
|
|
||||||
let toolver = "1.0"
|
let toolver = "0.1 (early access)"
|
||||||
|
|
||||||
let log = Log.shared
|
let log = Log.shared
|
||||||
|
|
||||||
@ -34,7 +34,7 @@ let action = AllowedArguments.init(rawValue: argument)
|
|||||||
switch action {
|
switch action {
|
||||||
case .use, .performSwitch:
|
case .use, .performSwitch:
|
||||||
if !Shell.fileExists("\(Paths.binPath)/php") {
|
if !Shell.fileExists("\(Paths.binPath)/php") {
|
||||||
Log.err("PHP is currently not linked. Attempting to link `php` at least...")
|
Log.err("PHP is currently not linked. Attempting quick fix...")
|
||||||
_ = Shell.user.executeSynchronously("brew link php", requiresPath: true)
|
_ = Shell.user.executeSynchronously("brew link php", requiresPath: true)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user