chore: import upstream snapshot with attribution
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
import Foundation
|
||||
|
||||
enum InstallOrigin {
|
||||
static func isHomebrewCask(appBundleURL: URL) -> Bool {
|
||||
let resolved = appBundleURL.resolvingSymlinksInPath()
|
||||
let path = resolved.path
|
||||
return path.contains("/Caskroom/") || path.contains("/Homebrew/Caskroom/")
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user