1
0
mirror of https://github.com/nicoverbruggen/phpmon.git synced 2025-08-07 03:50: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>
<CommandLineArguments>
<CommandLineArgument
argument = "use"
isEnabled = "YES">
</CommandLineArgument>
<CommandLineArgument
argument = "8.1"
argument = "help"
isEnabled = "YES">
</CommandLineArgument>
</CommandLineArguments>

View File

@ -8,7 +8,7 @@
import Foundation
let toolver = "1.0"
let toolver = "0.1 (early access)"
let log = Log.shared
@ -34,7 +34,7 @@ let action = AllowedArguments.init(rawValue: argument)
switch action {
case .use, .performSwitch:
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)
}