add dir option
This commit is contained in:
parent
7702f6137e
commit
25868dc8f0
|
@ -54,8 +54,11 @@ var modules = [
|
||||||
|
|
||||||
var createBitcore = function(opts) {
|
var createBitcore = function(opts) {
|
||||||
|
|
||||||
|
|
||||||
|
opts.dir = opts.dir || '';
|
||||||
|
|
||||||
// concat browser vendor files
|
// concat browser vendor files
|
||||||
exec('cd 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.includeall && (!opts.submodules || opts.submodules.length === 0)) {
|
||||||
console.log('Must use either -s or -a option. For more info use the --help option');
|
console.log('Must use either -s or -a option. For more info use the --help option');
|
||||||
|
|
Loading…
Reference in New Issue