Skip to content

Commit 942701f

Browse files
committed
fix: explicitly set zero exit code
1 parent 0a6e132 commit 942701f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

bin/cmd.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,11 @@ import { execCmd } from './../lib/exec.js'
2727
return `Sucessfully transferred ${entities.length} entities from ${source} to ${target}.`
2828
})()
2929
.then((result) => {
30-
if (result) {
31-
console.log(result)
32-
}
30+
console.log(result)
31+
process.exitCode = 0
3332
})
3433
.catch((err) => {
34+
console.error('An error occurred executing the command:')
3535
console.error(err)
3636
process.exitCode = 1
3737
})

0 commit comments

Comments
 (0)