From e19b847061a6f4af7d5dd0386adddb455467877c Mon Sep 17 00:00:00 2001 From: relnofollow Date: Wed, 15 Feb 2023 22:28:53 +0100 Subject: [PATCH] fix: added `shell:true` option to `spawnSync` --- serverless-single-page-app-plugin/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/serverless-single-page-app-plugin/index.js b/serverless-single-page-app-plugin/index.js index 8a738af..e63acfe 100644 --- a/serverless-single-page-app-plugin/index.js +++ b/serverless-single-page-app-plugin/index.js @@ -44,7 +44,7 @@ class ServerlessPlugin { if (this.serverless.variables.service.provider.profile) { command = `${command} --profile ${this.serverless.variables.service.provider.profile}`; } - const result = spawnSync(command, args); + const result = spawnSync(command, args, { shell: true }); const stdout = typeof result.stdout === 'string' ? result.stdout : result.stdout && result.stdout.toString() ; const sterr = typeof result.stderr === 'string' ? result.stderr : result.stderr && result.stderr.toString();