From daae9134217aca9a50038e4a78756639f452e3fc Mon Sep 17 00:00:00 2001 From: Alec Larson <1925840+aleclarson@users.noreply.github.com> Date: Sat, 6 Jan 2024 14:29:36 -0500 Subject: [PATCH] fix(share): avoid crash if ctrl+C is used during prompt --- src/commands/share.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/commands/share.ts b/src/commands/share.ts index e564f53..5b77843 100644 --- a/src/commands/share.ts +++ b/src/commands/share.ts @@ -84,6 +84,10 @@ export default async (cfg: RootConfig) => { choices, }) + if (!selected) { + return + } + for (const root of selected) { const remotes = git.getRemotes(join(cfg.root, root))