From 1f63159eaafc1316ce76b8027da8c4258aa08702 Mon Sep 17 00:00:00 2001 From: Alok Choudhary Date: Tue, 2 Mar 2021 08:16:31 -0500 Subject: [PATCH] adding auto installation of swiftlint --- MASegmentedControl.xcodeproj/project.pbxproj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MASegmentedControl.xcodeproj/project.pbxproj b/MASegmentedControl.xcodeproj/project.pbxproj index e633e69..a903f14 100644 --- a/MASegmentedControl.xcodeproj/project.pbxproj +++ b/MASegmentedControl.xcodeproj/project.pbxproj @@ -234,7 +234,7 @@ ); runOnlyForDeploymentPostprocessing = 0; shellPath = /bin/sh; - shellScript = "if which swiftlint >/dev/null; then\nswiftlint --config ./swiftlint.yml\nelse\necho \"Error: SwiftLint not installed!!! Read & download from https://github.com/realm/SwiftLint\"\nexit -1\nfi\n"; + shellScript = "if which swiftlint >/dev/null; then\nswiftlint --config ./swiftlint.yml\n#swiftlint --config ./swiftlint.yml &>.swiftlintstat\n#cat .swiftlintstat| grep \"Done\" > swiftlint.stat\n#rm -f .swiftlintstat\nelse\necho \"Error: SwiftLint not installed!!! Read & download from https://github.com/realm/SwiftLint\"\nexit -1\nfi\n"; }; /* End PBXShellScriptBuildPhase section */