Skip to content

Commit 9a8c5b3

Browse files
committed
headlamp-plugin: Use execFileSync instead of execSync
Signed-off-by: Evangelos Skopelitis <[email protected]>
1 parent 2201a45 commit 9a8c5b3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Diff for: plugins/headlamp-plugin/bin/headlamp-plugin.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -549,8 +549,10 @@ function runScriptOnPackages(packageFolder, scriptName, cmdLine, env) {
549549

550550
console.log(`"${folder}": ${scriptName}-ing, :${cmdLineToUse}:...`);
551551

552+
const [cmd, ...args] = cmdLineToUse.split(' ');
553+
552554
try {
553-
child_process.execSync(cmdLineToUse, {
555+
child_process.execFileSync(cmd, args, {
554556
stdio: 'inherit',
555557
encoding: 'utf8',
556558
env: { ...process.env, ...(env || {}) },

0 commit comments

Comments
 (0)