Skip to content

Commit 5823138

Browse files
authored
Merge pull request #1503 from sebschmitt/main
/bin/kill: respect user confirmation
2 parents b48dcbd + c6cee2c commit 5823138

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

bin/kill

+5
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,11 @@ const isValidDate = async (value, dateOpen = false) => {
115115

116116
const isConfirmed = await confirm.run();
117117

118+
if (!isConfirmed) {
119+
console.log(`Nothing was changed!`);
120+
return;
121+
}
122+
118123
graveyardData.push(product);
119124

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

0 commit comments

Comments
 (0)