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

🐛 Fix issue with parsing CaskFile

This commit is contained in:
2023-03-03 14:44:15 +01:00
parent 7a02fb8a1a
commit d1498eb070
2 changed files with 2 additions and 1 deletions

View File

@ -39,10 +39,10 @@ struct CaskFile {
}
let lines = string.split(separator: "\n")
.filter { $0 != "" }
.map { line in
return line.trimmingCharacters(in: .whitespacesAndNewlines)
}
.filter { $0 != "" }
if lines.count < 4 {
Log.err("The CaskFile is <4 lines long, which is too short")

View File

@ -11,3 +11,4 @@ cask 'phpmon-dev' do
app 'PHP Monitor DEV.app', target: "PHP Monitor DEV.app"
end