spelling error..
This commit is contained in:
parent
5f7abdbbfe
commit
a57d963303
4
main.go
4
main.go
|
@ -39,9 +39,9 @@ func isPublished(gitRepoPath, gitIndexPath, prevcommit, lastcommit string) bool
|
||||||
err := commits.Run()
|
err := commits.Run()
|
||||||
check(err)
|
check(err)
|
||||||
for _, commit := range strings.Fields(sout.String()) {
|
for _, commit := range strings.Fields(sout.String()) {
|
||||||
commitedFiles, err := exec.Command("git", "-C", gitRepoPath, "diff-tree", "--no-commit-id", "--name-only", commit).Output()
|
committedFiles, err := exec.Command("git", "-C", gitRepoPath, "diff-tree", "--no-commit-id", "--name-only", commit).Output()
|
||||||
check(err)
|
check(err)
|
||||||
for _, commitFile := range strings.Fields(string(commitedFiles)) {
|
for _, commitFile := range strings.Fields(string(committedFiles)) {
|
||||||
if commitFile == "PUBLISH.trigger.md" {
|
if commitFile == "PUBLISH.trigger.md" {
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue