Skip to content

Commit

Permalink
fix : 윈도우에서 makeGitHooksExecutable 에러 fix (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
wjdwnsdnjs13 authored Jul 2, 2024
1 parent 42ee176 commit 123e0e4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,11 @@ subprojects {
}

tasks.register<Exec>("makeGitHooksExecutable") {
commandLine("chmod", "+x", "${rootProject.rootDir}/.git/hooks/pre-commit")
if (System.getProperty("os.name").contains("Windows")) {
commandLine("attrib", "+x", "${rootProject.rootDir}/.git/hooks/pre-commit")
} else {
commandLine("chmod", "+x", "${rootProject.rootDir}/.git/hooks/pre-commit")
}
dependsOn("updateGitHooks")
}

Expand Down

0 comments on commit 123e0e4

Please sign in to comment.