diff --git a/bin/crx.js b/bin/crx.js index c43d6bc..a504155 100755 --- a/bin/crx.js +++ b/bin/crx.js @@ -85,22 +85,22 @@ function pack (dir, program) { crx.privateKey = data; crx.load().then(function () { - return crx.loadContents(); - }) + return crx.loadContents(); + }) .then(function (zipBuffer) { - if (program.zipOutput) { - var outFile = resolve(cwd, program.zipOutput); + if (program.zipOutput) { + var outFile = resolve(cwd, program.zipOutput); - fs.createWriteStream(outFile).end(zipBuffer); - } + fs.createWriteStream(outFile).end(zipBuffer); + } - return crx.pack(zipBuffer); + return crx.pack(zipBuffer); }) .then(function (crxBuffer) { - var outFile = resolve(cwd, program.output); - (outFile ? fs.createWriteStream(outFile) : process.stdout).end(crxBuffer); + var outFile = resolve(cwd, program.output); + (outFile ? fs.createWriteStream(outFile) : process.stdout).end(crxBuffer); - return crx.destroy(); + return crx.destroy(); }); }); } \ No newline at end of file