diff --git a/NSAttributedStringBuilder.xcodeproj/project.pbxproj b/NSAttributedStringBuilder.xcodeproj/project.pbxproj index 20a42fc..137ef9d 100644 --- a/NSAttributedStringBuilder.xcodeproj/project.pbxproj +++ b/NSAttributedStringBuilder.xcodeproj/project.pbxproj @@ -226,7 +226,7 @@ ); runOnlyForDeploymentPostprocessing = 0; shellPath = /bin/sh; - shellScript = "# Installs commit hooks\nif [[ -d \"$HOME/.rbenv\" ]]; then\n export PATH=~/.rbenv/shims:$PATH\n bundle exec lefthook install\nelse\n echo \"warning: Please install rbenv\"\nfi\n"; + shellScript = "# Installs commit hooks\nif [[ -d \"$HOME/.rbenv\" ]]; then\n export PATH=\"$HOME/.rbenv/shims:$PATH\"\n bundle exec lefthook install\nelse\n echo \"warning: Please install rbenv\"\nfi\n"; }; /* End PBXShellScriptBuildPhase section */ diff --git a/lefthook.yml b/lefthook.yml index 3a5b034..55ba735 100644 --- a/lefthook.yml +++ b/lefthook.yml @@ -3,5 +3,6 @@ pre-commit: fail_on_changes: "always" fail_on_changes_diff: false jobs: - - name: Format Swift files & abort commit if needed - run: swiftformat Sources --config .swiftformat + - name: Format Swift files + glob: "*.swift" + run: swiftformat {staged_files} --config .swiftformat