@@ -28351,16 +28351,15 @@ const exec = __nccwpck_require__(5236);
2835128351const fs = __nccwpck_require__(9896);
2835228352const tmp = __nccwpck_require__(1288);
2835328353const path = __nccwpck_require__(6928);
28354- const io = __nccwpck_require__(4994);
2835528354
2835628355const platform = process.platform;
2835728356
28358- async function execOVM( args, options = {}) {
28357+ async function execCommand(command, args, options = {}) {
2835928358 if (platform === 'darwin') {
2836028359 const joinedArgs = args.map(a => `'${a}'`).join(' ');
28361- await exec.exec('bash', ['-c', `ovm ${joinedArgs}`], options);
28360+ await exec.exec('bash', ['-c', `${command} ${joinedArgs}`], options);
2836228361 } else {
28363- await exec.exec('ovm' , args, options);
28362+ await exec.exec(command , args, options);
2836428363 }
2836528364}
2836628365
@@ -28398,7 +28397,6 @@ async function run() {
2839828397 }
2839928398
2840028399 if (platform == 'linux') {
28401-
2840228400 var tmpFile = tmp.fileSync();
2840328401 fs.writeFileSync(tmpFile.name, installLinux());
2840428402 await exec.exec('bash ' + tmpFile.name);
@@ -28413,8 +28411,8 @@ async function run() {
2841328411 fs.unlinkSync(tmpFile.name);
2841428412 }
2841528413
28416- await execOVM( ['install', osVersion]);
28417- await execOVM( ['use', osVersion]);
28414+ await execCommand('ovm', ['install', osVersion]);
28415+ await execCommand('ovm', ['use', osVersion]);
2841828416
2841928417 let output = '';
2842028418 const options = {};
@@ -28425,7 +28423,7 @@ async function run() {
2842528423 }
2842628424 }
2842728425 };
28428- await execOVM( ['which', 'current'], options);
28426+ await execCommand('ovm', ['which', 'current'], options);
2842928427 let pathOscript = path.dirname(output);
2843028428
2843128429 core.addPath(pathOscript);
0 commit comments