Remove link LFS step in setup-project. (#1987)

This commit is contained in:
Doug
2023-10-30 17:37:26 +00:00
committed by GitHub
parent f63771d1dc
commit a4bf16bffa
-14
View File
@@ -11,7 +11,6 @@ struct SetupProject: ParsableCommand {
try setupGitHooks()
try brewBundleInstall()
try mintPackagesInstall()
try linkGitLFS()
try xcodegen()
}
@@ -29,19 +28,6 @@ struct SetupProject: ParsableCommand {
func mintPackagesInstall() throws {
try Utilities.zsh("mint install Asana/locheck")
}
func linkGitLFS() throws {
guard let gitPath = try Utilities.zsh("git --exec-path")?.replacingOccurrences(of: "\n", with: "") else { return }
let lfsPath = URL(fileURLWithPath: gitPath).appendingPathComponent("git-lfs").path
guard !FileManager.default.fileExists(atPath: lfsPath) else {
print("Git LFS already linked.")
return
}
try Utilities.zsh("ln -s \"$(which git-lfs)\" \"\(lfsPath)\"")
}
func xcodegen() throws {
try Utilities.zsh("xcodegen")