Skip to content

Commit c901a0a

Browse files
authored
fix: proper file descriptor for shell configuration (#675)
1 parent d430a28 commit c901a0a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/namespaces/autocomplete/autocomplete.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ func InstallCommandRun(ctx context.Context, argsI interface{}) (i interface{}, e
182182
}
183183

184184
// If the file doesn't exist, create it
185-
f, err := os.OpenFile(shellConfigurationFilePath, os.O_APPEND|os.O_CREATE|os.O_WRONLY, 0644)
185+
f, err := os.OpenFile(shellConfigurationFilePath, os.O_RDWR|os.O_CREATE|os.O_APPEND, 0644)
186186
if f != nil {
187187
defer f.Close()
188188
}

0 commit comments

Comments
 (0)