1
0
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:
2023-02-26 15:02:29 +01:00
parent 608525209b
commit 089ebe7b4e
2 changed files with 1 additions and 4 deletions

View File

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

View File

@ -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")
}()
/**