diff --git a/pkg/cheatsheet/generate.go b/pkg/cheatsheet/generate.go index 812ce0c8f..bc4e95199 100644 --- a/pkg/cheatsheet/generate.go +++ b/pkg/cheatsheet/generate.go @@ -83,6 +83,10 @@ func generateAtDir(cheatsheetDir string) { content = fmt.Sprintf("_This file is auto-generated. To update, make the changes in the "+ "pkg/i18n directory and then run `%s` from the project root._\n\n%s", CommandToRun(), content) writeString(file, content) + err = file.Close() + if err != nil { + log.Fatal(err) + } } }