mirror of
https://github.com/nicoverbruggen/phpmon.git
synced 2025-08-07 03:50:08 +02:00
👌 More strict Valet check, remove print
This commit is contained in:
@ -49,8 +49,6 @@ struct CaskFile {
|
||||
return nil
|
||||
}
|
||||
|
||||
print(lines)
|
||||
|
||||
if !lines.first!.starts(with: "cask") || !lines.last!.starts(with: "end") {
|
||||
Log.err("The CaskFile does not start with 'cask' or does not end with 'end'")
|
||||
return nil
|
||||
|
@ -62,8 +62,7 @@ class Valet {
|
||||
}
|
||||
|
||||
lazy var installed: Bool = {
|
||||
// TODO: Make this properly lazy
|
||||
return FileSystem.fileExists(Paths.binPath.appending("/valet"))
|
||||
return FileSystem.fileExists(Paths.binPath.appending("/valet")) && FileSystem.anyExists("~/.config/valet")
|
||||
}()
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user