Skip to content

Commit f2b050d

Browse files
committed
fixup! fix for mac permissions pre-commit #612
1 parent f980f80 commit f2b050d

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

core/build.gradle.kts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -176,9 +176,11 @@ val installGitPreCommitHook by tasks.creating(Copy::class) {
176176
fileMode = 755
177177

178178
// 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")
179+
if (OSType.identify() == OSType.Mac) doLast {
180+
exec {
181+
workingDir(gitHooksDir)
182+
commandLine("chmod", "755", "pre-commit")
183+
}
182184
}
183185
} else {
184186
logger.lifecycle("'.git/hooks' directory not found. Skipping installation of pre-commit hook.")

0 commit comments

Comments
 (0)