Skip to content

Commit 809f7e7

Browse files
committed
Merge branch 'dev'
2 parents 123380a + b8ab9d3 commit 809f7e7

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

run/install-base.js

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ if (!fs.existsSync('node_modules')) {
7070
binNpm = 'npm.cmd';
7171
}
7272

73-
spawnedObj = spawnSync(binNpm, ['install', '--ignore-scripts'], {stdio: 'inherit'});
73+
spawnedObj = spawnSync(binNpm, ['install', '--ignore-scripts'], {shell: true, stdio: 'inherit'});
7474
}
7575

7676
if (spawnedObj && spawnedObj.stderr) {
@@ -113,12 +113,15 @@ if (isWindows) {
113113
}
114114

115115
// Copy over the base profile source dir.
116-
const spawnedObj1 =
117-
spawnSync(binGulp, ['--gulpfile', path.resolve(fepperPath, 'tasker.js'), 'install:copy-base'], {stdio: 'inherit'});
116+
const spawnedObj1 = spawnSync(
117+
binGulp,
118+
['--gulpfile', path.resolve(fepperPath, 'tasker.js'), 'install:copy-base'],
119+
{shell: true, stdio: 'inherit'}
120+
);
118121

119122
if (spawnedObj1.stderr) {
120123
fs.appendFileSync(installLog, `${spawnedObj1.stderr}\n`);
121124
}
122125

123126
// Complete installation. run/install.js handles its own logging so no need to log here.
124-
spawnSync('node', [path.resolve('run', 'install.js')], {stdio: 'inherit'});
127+
spawnSync('node', [path.resolve('run', 'install.js')], {shell: true, stdio: 'inherit'});

run/install.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ if (!fs.existsSync(prefFile)) {
3737
}
3838

3939
const argv = ['--gulpfile', taskerPath];
40-
const spawnedObj = spawnSync(binGulp, argv.concat(['install']), {stdio: 'inherit'});
40+
const spawnedObj = spawnSync(binGulp, argv.concat(['install']), {shell: true, stdio: 'inherit'});
4141

4242
// Output to install.log.
4343
const installLog = 'install.log';
@@ -58,5 +58,5 @@ if (conf.ui && conf.ui.paths && conf.ui.paths.source && conf.ui.paths.source.roo
5858
}
5959

6060
if (sourceDirContent.length) {
61-
spawnSync(binGulp, argv.concat(['ui:compile']), {stdio: 'inherit'});
61+
spawnSync(binGulp, argv.concat(['ui:compile']), {shell: true, stdio: 'inherit'});
6262
}

0 commit comments

Comments
 (0)