Merge pull request #973 from abdonrd/patch-1

Fix exec command when the path has spaces
This commit is contained in:
Jim LAURIE 2018-04-20 10:47:37 +02:00 committed by GitHub
commit cd1af7ebcf
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 });
@ -87,7 +87,7 @@ module.exports = {
strapi.reload.isWatching = false;
strapi.log.info(`Uninstalling ${plugin}...`);
exec(`node ${strapiBin} uninstall ${plugin}`);
exec(`node "${strapiBin}" uninstall ${plugin}`);
ctx.send({ ok: true });