Fix: clean up code
This commit is contained in:
1 parent
e2ff7ecac6
commit
df1fb3f0ef
2 files changed
+8
-9
No files matched your search
@@ -37,14 +37,12 @@ console.log('');
|
||||
console.log(nodeModulesDirs);
|
||||
console.log('');
|
||||
|
||||
|
||||
let dir;
|
||||
for (dir in nodeModulesDirs) {
|
||||
for (let dir of nodeModulesDirs) {
|
||||
// Loop through directories and run npm ci in a child process shell.
|
||||
let command = "echo Results of install at "+ nodeModulesDirs[dir] + " & npm ci";
|
||||
let command = "echo Results of install at "+ dir + " & npm ci";
|
||||
exec( command,
|
||||
{
|
||||
cwd: nodeModulesDirs[dir]
|
||||
cwd: dir
|
||||
},
|
||||
function ( error, stdout ){
|
||||
if (error) {
|
||||
|
||||
Reference in new issue
Block a user