diff options
| author | ishaan <contact@ishaan.cc> | 2026-08-20 14:03:30 +0530 |
|---|---|---|
| committer | ishaan <contact@ishaan.cc> | 2026-08-20 14:03:30 +0530 |
| commit | 7caaf4c96d4f657d9193baf48e9745c9f68181c9 (patch) | |
| tree | abcdb288540f465b1e39a9c6fa4b6bf94cefa65e /cmd/eno | |
| parent | c7b546fb94687a6cbe9bab9db041d15104c5111d (diff) | |
fix: wipe temp file before removal to prevent leak
Diffstat (limited to 'cmd/eno')
| -rw-r--r-- | cmd/eno/cobra_new.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/cmd/eno/cobra_new.go b/cmd/eno/cobra_new.go index 682c122..1b079e2 100644 --- a/cmd/eno/cobra_new.go +++ b/cmd/eno/cobra_new.go @@ -35,6 +35,11 @@ var newCmd = &cobra.Command{ os.Exit(1) } + if sshFlag && config.Conf.DefaultSSHPubPath == "" { + cmd.PrintErrln("Error: SSH not configured. Run 'eno ssh init' first") + os.Exit(1) + } + noteName := strings.Join(args, " ") if output == "" { if strings.ContainsRune(noteName, filepath.Separator) { |