make sure that process exits ok
This commit is contained in:
parent
61e3edc827
commit
bc3679d614
@ -1,9 +1,12 @@
|
|||||||
import "typings-global";
|
import "typings-global";
|
||||||
import * as plugins from "./npmci.plugins";
|
import * as plugins from "./npmci.plugins";
|
||||||
export let bash = (commandArg) => {
|
export let bash = (commandArg) => {
|
||||||
plugins.shelljs.exec(
|
let exitCode = plugins.shelljs.exec(
|
||||||
"bash -c \"source /usr/local/nvm/nvm.sh &&" +
|
"bash -c \"source /usr/local/nvm/nvm.sh &&" +
|
||||||
commandArg +
|
commandArg +
|
||||||
"\""
|
"\""
|
||||||
);
|
).code;
|
||||||
|
if(exitCode !== 0){
|
||||||
|
process.exit(1);
|
||||||
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user