Know how to write good shell scripts

This commit is contained in:
Henry Zhu
2016-02-08 19:53:06 -05:00
parent 8191681dfa
commit 7bcfa02edd
2 changed files with 1 additions and 17 deletions

View File

@@ -1,15 +0,0 @@
'use strict';
var binVersionCheck = require("bin-version-check");
var child = require("child_process");
// run in npm 3+ only
binVersionCheck("npm", ">=3.3.0", function (err) {
if (!err) {
console.log("Running ./node_modules/.bin/flow check");
var cmd = child.spawn("./node_modules/.bin/flow", ["check"], { stdio: "inherit" });
cmd.on("exit", function(code) {
process.exit(code);
});
}
});