From 7caaf4c96d4f657d9193baf48e9745c9f68181c9 Mon Sep 17 00:00:00 2001 From: ishaan Date: Thu, 20 Aug 2026 14:03:30 +0530 Subject: fix: wipe temp file before removal to prevent leak --- cmd/eno/cobra_new.go | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'cmd/eno') 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) { -- cgit v1.3