1
0
mirror of https://github.com/nicoverbruggen/phpmon.git synced 2025-08-07 20:10:08 +02:00

👌 Cleanup

This commit is contained in:
2021-12-21 18:00:07 +01:00
parent 63f4f8b078
commit 69042042ea
2 changed files with 3 additions and 7 deletions

View File

@ -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>

View File

@ -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)
} }