Skip to content

Commit 95302ae

Browse files
committed
Fix bug:
1 parent 98ac369 commit 95302ae

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cmd/root.go

+1
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ func makeBashCompletionFileIfNeeded(cmd *cobra.Command) {
6262

6363
if _, err := fp.WriteString(bashCompletion.String()); err != nil {
6464
print.Err(fmt.Errorf("can not write .bash_completion %w", err))
65+
return
6566
}
6667
print.Info("create bash-completion file: " + path)
6768
return

0 commit comments

Comments
 (0)