Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fixup! make
  • Loading branch information
ammario committed Feb 23, 2023
commit 72c2d5f7fb2f5a686e9a77ae5c73b0053cb753f9
4 changes: 2 additions & 2 deletions scripts/clidocgen/gen.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,11 +112,11 @@ func writeCommand(w io.Writer, cmd *cobra.Command) error {
content = strings.ReplaceAll(content, buildinfo.Version()+" ", "")

// Remove references to the current working directory
dir, err := os.Getwd()
cwd, err := os.Getwd()
if err != nil {
return err
}
content = strings.ReplaceAll(content, dir, ".")
content = strings.ReplaceAll(content, cwd, ".")

_, err = w.Write([]byte(content))
return err
Expand Down