mirror of https://github.com/embarklabs/embark.git
Merge pull request #1018 from embark-framework/bug_fix/shim-main-returns
fix the shim
This commit is contained in:
commit
662e2488fb
12
bin/embark
12
bin/embark
|
@ -15,7 +15,7 @@
|
|||
// package.json under `{"embark": {...}}` -or- stored in an embark.json file.
|
||||
|
||||
function main() {
|
||||
whenNoShim();
|
||||
if (whenNoShim()) return;
|
||||
var invoked = thisEmbark();
|
||||
var embarkJson = findEmbarkJson();
|
||||
var dappPath = embarkJson.dirname;
|
||||
|
@ -725,13 +725,9 @@ function thisEmbark() {
|
|||
}
|
||||
|
||||
function whenNoShim() {
|
||||
var noShim = false;
|
||||
if (process.env.EMBARK_NO_SHIM) {
|
||||
noShim = true;
|
||||
}
|
||||
if (noShim) {
|
||||
EmbarkBin.prototype.exec();
|
||||
}
|
||||
var noShim = !!process.env.EMBARK_NO_SHIM;
|
||||
if (noShim) EmbarkBin.prototype.exec();
|
||||
return noShim;
|
||||
}
|
||||
|
||||
// -- reporters ----------------------------------------------------------------
|
||||
|
|
Loading…
Reference in New Issue