Skip to content

Commit

Permalink
fix: add executable permission to check script
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolasfara committed Dec 31, 2021
1 parent 46aff2c commit c2e2796
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ class ConventionalCommits : Plugin<Project> {
if (!scriptPath.exists()) scriptPath.mkdirs()
val scriptContent = MessageFormat.format(scriptContent, regex)
project.logger.debug("script content: $scriptContent")
scriptPath.resolve("commit-msg").writeText(scriptContent)
val scriptFile = scriptPath.resolve("commit-msg")
scriptFile.writeText(scriptContent)
scriptFile.setExecutable(true)
}
}

0 comments on commit c2e2796

Please sign in to comment.