diff --git a/ts/npmci.bash.ts b/ts/npmci.bash.ts index 4ad3183..95895c2 100644 --- a/ts/npmci.bash.ts +++ b/ts/npmci.bash.ts @@ -1,9 +1,12 @@ import "typings-global"; import * as plugins from "./npmci.plugins"; export let bash = (commandArg) => { - plugins.shelljs.exec( + let exitCode = plugins.shelljs.exec( "bash -c \"source /usr/local/nvm/nvm.sh &&" + commandArg + "\"" - ); + ).code; + if(exitCode !== 0){ + process.exit(1); + } } \ No newline at end of file