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 f980f80 commit f2b050dCopy full SHA for f2b050d
core/build.gradle.kts
@@ -176,9 +176,11 @@ val installGitPreCommitHook by tasks.creating(Copy::class) {
176
fileMode = 755
177
178
// Workaround for https://github.com/Kotlin/dataframe/issues/612
179
- if (OSType.identify() == OSType.Mac) exec {
180
- workingDir(gitHooksDir)
181
- commandLine("chmod", "755", "pre-commit")
+ if (OSType.identify() == OSType.Mac) doLast {
+ exec {
+ workingDir(gitHooksDir)
182
+ commandLine("chmod", "755", "pre-commit")
183
+ }
184
}
185
} else {
186
logger.lifecycle("'.git/hooks' directory not found. Skipping installation of pre-commit hook.")
0 commit comments