We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ff8061d commit b3d3ab3Copy full SHA for b3d3ab3
scripts/check_imports.swift
@@ -145,7 +145,11 @@ private func main() -> Int32 {
145
let logger = ErrorLogger()
146
// Search the path upwards to find the root of the firebase-ios-sdk repo.
147
var url = URL(fileURLWithPath: FileManager().currentDirectoryPath)
148
- while url.path != "/", url.lastPathComponent != "firebase-ios-sdk" {
+ while url.path != "/" {
149
+ let script = url.appendingPathComponent("scripts/check_imports.swift")
150
+ if FileManager.default.fileExists(atPath: script.path) {
151
+ break
152
+ }
153
url = url.deletingLastPathComponent()
154
}
155
let repoURL = url
0 commit comments