diff options
Diffstat (limited to 'internal/crud/cli_new_ssh.go')
| -rw-r--r-- | internal/crud/cli_new_ssh.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/crud/cli_new_ssh.go b/internal/crud/cli_new_ssh.go index 2a69223..797e769 100644 --- a/internal/crud/cli_new_ssh.go +++ b/internal/crud/cli_new_ssh.go @@ -226,7 +226,7 @@ func NewNoteSSHEdit(output string, defaultPubKeyBytes []byte, defaultPrivKeyPath perm = noteInfo.Mode().Perm() } - err = os.WriteFile(output, encrypted, perm) + err = utils.WriteFileAtomic(output, encrypted, perm) fmt.Println("New note saved at:", output) |