Fix exec command when the path has spaces

Fixes #962
This commit is contained in:
Abdón Rodríguez Davila 2018-04-19 13:10:34 +02:00 committed by GitHub
parent cace0454e5
commit 686a278406
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -54,7 +54,7 @@ module.exports = {
strapi.log.info(`Installing ${plugin}...`);
exec(`node ${strapiBin} install ${plugin} ${port === '4000' ? '--dev' : ''}`);
exec(`node "${strapiBin}" install ${plugin} ${port === '4000' ? '--dev' : ''}`);
ctx.send({ ok: true });