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