Skip to content

Commit a9d3fb0

Browse files
author
John Haley
committed
Don't fail if postinstall doesn't work
1 parent 5d7517f commit a9d3fb0

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

lifecycleScripts/postinstall.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ module.exports = function install() {
2525
return Promise.resolve();
2626
}
2727

28-
return exec("node dist/nodegit.js")
28+
return exec("node " + path.join(rootPath, "dist/nodegit.js"))
2929
.catch(function(e) {
3030
if (~e.toString().indexOf("Module version mismatch")) {
3131
console.warn(
@@ -63,7 +63,7 @@ module.exports = function install() {
6363
if (require.main === module) {
6464
module.exports()
6565
.catch(function(e) {
66-
console.error("[nodegit] ERROR - Could not finish postinstall");
66+
console.warn("[nodegit] WARN - Could not finish postinstall");
6767

6868
if (
6969
process.pladtform === "linux" &&
@@ -74,7 +74,5 @@ if (require.main === module) {
7474
else {
7575
console.log(e);
7676
}
77-
78-
process.exit(1);
7977
});
8078
}

0 commit comments

Comments
 (0)