From 880efdc22fce61735bd34af088baa078c8b5ef9d Mon Sep 17 00:00:00 2001 From: unknown Date: Tue, 8 Apr 2014 03:54:35 -0400 Subject: [PATCH 1/2] Fix exec syntax in browser/build.js, fixes error on windows --- browser/build.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/browser/build.js b/browser/build.js index 545219f..865324a 100644 --- a/browser/build.js +++ b/browser/build.js @@ -63,7 +63,7 @@ var createBitcore = function(opts) { opts.dir = opts.dir || ''; // concat browser vendor files - exec('cd ' + opts.dir + 'browser; sh concat.sh', puts); + exec('cd ' + opts.dir + 'browser & sh concat.sh', puts); 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'); From d8c8288ce4a281f9aa6fc94cff881e2c76fa4ef9 Mon Sep 17 00:00:00 2001 From: unknown Date: Tue, 8 Apr 2014 10:48:06 -0400 Subject: [PATCH 2/2] Change to @olalonde suggestion for compatibility on both *nix and windows --- browser/build.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/browser/build.js b/browser/build.js index 865324a..e96d3e5 100644 --- a/browser/build.js +++ b/browser/build.js @@ -63,7 +63,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');