Skip to content

Commit 6cbca55

Browse files
author
Chris Kleeschulte
committed
Apparently pushd and popd are not available in the shell used by exec on
all platforms.
1 parent 7155ff0 commit 6cbca55

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bitcore-node/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ InsightUI.prototype.start = function(callback) {
2323
pkg.insightConfig.routePrefix = self.routePrefix;
2424

2525
fs.writeFileSync(__dirname + '/../package.json', JSON.stringify(pkg, null, 2));
26-
exec('pushd ' + __dirname + '/../;' +
27-
' npm run install-and-build; popd', function(err) {
26+
exec('cd ' + __dirname + '/../;' +
27+
' npm run install-and-build', function(err) {
2828
if (err) {
2929
return callback(err);
3030
}

0 commit comments

Comments
 (0)