mirror of
https://github.com/strapi/strapi.git
synced 2025-11-02 02:44:55 +00:00
Merge pull request #973 from abdonrd/patch-1
Fix exec command when the path has spaces
This commit is contained in:
commit
cd1af7ebcf
@ -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 });
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user