Skip to content

Commit

Permalink
feat: enable script execution and add error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
leoli0605 committed Mar 6, 2024
1 parent f3a7887 commit 52471e8
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,13 +67,13 @@ selectPackages()

console.log(`command: ${command}`);
console.log(`args: ${args}`);
// cmd(command, args)
// .then(() => {
// console.log("Success executing scripts");
// })
// .catch((error) => {
// console.error("Error executing scripts:", error);
// });
cmd(command, args)
.then(() => {
console.log("Success executing scripts");
})
.catch((error) => {
console.error("Error executing scripts:", error);
});
})
.catch((error) => {
console.error('Error selecting packages:', error);
Expand Down

0 comments on commit 52471e8

Please sign in to comment.