mirror of
https://github.com/nicoverbruggen/phpmon.git
synced 2025-08-07 20:10:08 +02:00
🐛 Fix issue with parsing CaskFile
This commit is contained in:
@ -39,10 +39,10 @@ struct CaskFile {
|
|||||||
}
|
}
|
||||||
|
|
||||||
let lines = string.split(separator: "\n")
|
let lines = string.split(separator: "\n")
|
||||||
.filter { $0 != "" }
|
|
||||||
.map { line in
|
.map { line in
|
||||||
return line.trimmingCharacters(in: .whitespacesAndNewlines)
|
return line.trimmingCharacters(in: .whitespacesAndNewlines)
|
||||||
}
|
}
|
||||||
|
.filter { $0 != "" }
|
||||||
|
|
||||||
if lines.count < 4 {
|
if lines.count < 4 {
|
||||||
Log.err("The CaskFile is <4 lines long, which is too short")
|
Log.err("The CaskFile is <4 lines long, which is too short")
|
||||||
|
@ -11,3 +11,4 @@ cask 'phpmon-dev' do
|
|||||||
|
|
||||||
app 'PHP Monitor DEV.app', target: "PHP Monitor DEV.app"
|
app 'PHP Monitor DEV.app', target: "PHP Monitor DEV.app"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user