Skip to content

Commit

Permalink
Replace execSync() with execFileSync() (#223)
Browse files Browse the repository at this point in the history
Co-authored-by: Kaizen Conroy <[email protected]>
  • Loading branch information
dlaudams and kaizencc authored Aug 11, 2023
1 parent 482720b commit a7a9710
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ function getCode(buildImage: string): lambda.AssetCode {
try {
const installScript = path.join(__dirname, '../lambda/install.js');
const prebuiltPath = path.join(__dirname, '../lambda/out');
child_process.execSync(`${process.argv0} ${installScript} ${prebuiltPath}`);
child_process.execFileSync(process.argv0, [installScript, prebuiltPath]);

return lambda.Code.fromAsset(prebuiltPath);
} catch (err) {
Expand Down

0 comments on commit a7a9710

Please sign in to comment.