From a57d963303f8a5b949b09010e5b1f7234c58e3e1 Mon Sep 17 00:00:00 2001 From: Marcell Mars Date: Wed, 2 Dec 2020 17:43:05 +0100 Subject: [PATCH] spelling error.. --- main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.go b/main.go index 1e67ae8..b3457cd 100644 --- a/main.go +++ b/main.go @@ -39,9 +39,9 @@ func isPublished(gitRepoPath, gitIndexPath, prevcommit, lastcommit string) bool err := commits.Run() check(err) 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) - for _, commitFile := range strings.Fields(string(commitedFiles)) { + for _, commitFile := range strings.Fields(string(committedFiles)) { if commitFile == "PUBLISH.trigger.md" { return true }