Skip to content

Commit

Permalink
Merge pull request #1503 from sebschmitt/main
Browse files Browse the repository at this point in the history
/bin/kill: respect user confirmation
  • Loading branch information
codyogden authored May 20, 2024
2 parents b48dcbd + c6cee2c commit 5823138
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions bin/kill
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,11 @@ const isValidDate = async (value, dateOpen = false) => {

const isConfirmed = await confirm.run();

if (!isConfirmed) {
console.log(`Nothing was changed!`);
return;
}

graveyardData.push(product);

fs.writeFileSync(graveyardFilePath, `${JSON.stringify(graveyardData, null, 2)}\n`);
Expand Down

0 comments on commit 5823138

Please sign in to comment.