Merge branch 'master' into migration-guide

This commit is contained in:
Jim LAURIE 2018-04-20 11:40:54 +02:00 committed by GitHub
commit dc987556b8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -24,7 +24,7 @@ try {
// Check if path is existing. // Check if path is existing.
fs.accessSync(adminDirPath, fs.constants.R_OK | fs.constants.W_OK); fs.accessSync(adminDirPath, fs.constants.R_OK | fs.constants.W_OK);
const install = exec(`cd ${adminDirPath} && npm install --prod --ignore-scripts`, { const install = exec(`cd "${adminDirPath}" && npm install --prod --ignore-scripts`, {
silent: true silent: true
}); });
@ -35,8 +35,8 @@ try {
console.log('✅ Success'); console.log('✅ Success');
console.log(''); console.log('');
} catch (err) { } catch (e) {
if (err.code === 'ENOENT') { if (e.code === 'ENOENT') {
console.log('✅ Success'); console.log('✅ Success');
console.log(''); console.log('');
@ -60,7 +60,7 @@ try {
console.log('📦 Installing packages...'); console.log('📦 Installing packages...');
try { try {
const install = exec(`cd ${pluginPath} && npm install --prod --ignore-scripts`, { const install = exec(`cd "${pluginPath}" && npm install --prod --ignore-scripts`, {
silent: true silent: true
}); });
@ -76,7 +76,7 @@ try {
} }
}); });
} catch (e) { } catch (e) {
if (err.code === 'ENOENT') { if (e.code === 'ENOENT') {
console.log('✅ Success'); console.log('✅ Success');
console.log(''); console.log('');