Skip to content

Commit

Permalink
fix(share): avoid crash if ctrl+C is used during prompt
Browse files Browse the repository at this point in the history
  • Loading branch information
aleclarson committed Jan 6, 2024
1 parent 7e5f8d1 commit daae913
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/commands/share.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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))

Expand Down

0 comments on commit daae913

Please sign in to comment.