aboutsummaryrefslogtreecommitdiff
path: root/internal/crud/cli_new_ssh.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/crud/cli_new_ssh.go')
-rw-r--r--internal/crud/cli_new_ssh.go2
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)