Skip to content

Commit

Permalink
Apparently pushd and popd are not available in the shell used by exec on
Browse files Browse the repository at this point in the history
all platforms.
  • Loading branch information
Chris Kleeschulte committed Sep 27, 2017
1 parent 7155ff0 commit 6cbca55
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bitcore-node/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 6cbca55

Please sign in to comment.