npmci/ts/npmci.bash.ts

12 lines
302 B
TypeScript
Raw Permalink Normal View History

2016-05-30 01:40:07 +00:00
import "typings-global";
import * as plugins from "./npmci.plugins";
export let bash = (commandArg) => {
2016-05-30 01:43:15 +00:00
let exitCode = plugins.shelljs.exec(
2016-05-30 01:40:07 +00:00
"bash -c \"source /usr/local/nvm/nvm.sh &&" +
commandArg +
"\""
2016-05-30 01:43:15 +00:00
).code;
if(exitCode !== 0){
process.exit(1);
}
2016-05-30 01:40:07 +00:00
}