Merge pull request #225 from unusualbob/bug/browserbuildwindows

Fix exec syntax in browser/build.js, fixes error on windows
This commit is contained in:
Ryan X. Charles 2014-04-08 16:20:52 -03:00
commit 45fb78296a
1 changed files with 4 additions and 1 deletions

View File

@ -64,7 +64,10 @@ var createBitcore = function(opts) {
opts.dir = opts.dir || '';
// concat browser vendor files
exec('cd ' + opts.dir + 'browser; sh concat.sh', puts);
var cwd = process.cwd();
process.chdir(opts.dir + 'browser');
exec('sh concat.sh', puts);
process.chdir(cwd);
if (!opts.includeall && (!opts.submodules || opts.submodules.length === 0)) {
if (!opts.stdout) console.log('Must use either -s or -a option. For more info use the --help option');