Apparently pushd and popd are not available in the shell used by exec on

all platforms.
This commit is contained in:
Chris Kleeschulte 2017-09-27 19:22:58 -04:00
parent 7155ff0b91
commit 6cbca55bb1
No known key found for this signature in database
GPG Key ID: 33195D27EF6BDB7F

View File

@ -23,8 +23,8 @@ InsightUI.prototype.start = function(callback) {
pkg.insightConfig.routePrefix = self.routePrefix;
fs.writeFileSync(__dirname + '/../package.json', JSON.stringify(pkg, null, 2));
exec('pushd ' + __dirname + '/../;' +
' npm run install-and-build; popd', function(err) {
exec('cd ' + __dirname + '/../;' +
' npm run install-and-build', function(err) {
if (err) {
return callback(err);
}