From 82bdda07c6de822b58161e89b9c9b132dd86f6ef Mon Sep 17 00:00:00 2001 From: Rin Date: Thu, 14 Mar 2024 00:39:15 +0800 Subject: [PATCH] remove argument --- dist/index.js | 14 +++++++------- index.js | 14 +++++++------- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/dist/index.js b/dist/index.js index 24f811d..014b077 100644 --- a/dist/index.js +++ b/dist/index.js @@ -31147,7 +31147,7 @@ function ensure_install_ovmf() { show_message("fatal", `Error installing OVMF. Exit code: ${result.status}`); } - result = spawnSync("sudo", ["apt-get", "-y", "install", "-no-install-recommends", "ovmf"], { + result = spawnSync("sudo", ["apt-get", "--no-install-recommends", "-y", "install", "ovmf"], { stdio: "inherit", env: { ...process.env, DEBIAN_FRONTEND: "noninteractive" }, }); @@ -31160,12 +31160,12 @@ function ensure_install_ovmf() { }; try { - const os = core.getInput('os'); - const version = core.getInput('version'); - const arch = core.getInput('arch'); - const cpu = core.getInput('cpu'); - const bios = core.getInput('bios'); - const machine = core.getInput('machine'); + let os = core.getInput('os'); + let version = core.getInput('version'); + let arch = core.getInput('arch'); + let cpu = core.getInput('cpu'); + let bios = core.getInput('bios'); + let machine = core.getInput('machine'); let os_image_url = core.getInput('os_image_url'); // await shell("bash run.sh onStarted" ); diff --git a/index.js b/index.js index da225e2..e4028a1 100644 --- a/index.js +++ b/index.js @@ -257,7 +257,7 @@ function ensure_install_ovmf() { show_message("fatal", `Error installing OVMF. Exit code: ${result.status}`); } - result = spawnSync("sudo", ["apt-get", "-y", "install", "-no-install-recommends", "ovmf"], { + result = spawnSync("sudo", ["apt-get", "-y", "install", "ovmf"], { stdio: "inherit", env: { ...process.env, DEBIAN_FRONTEND: "noninteractive" }, }); @@ -270,12 +270,12 @@ function ensure_install_ovmf() { }; try { - const os = core.getInput('os'); - const version = core.getInput('version'); - const arch = core.getInput('arch'); - const cpu = core.getInput('cpu'); - const bios = core.getInput('bios'); - const machine = core.getInput('machine'); + let os = core.getInput('os'); + let version = core.getInput('version'); + let arch = core.getInput('arch'); + let cpu = core.getInput('cpu'); + let bios = core.getInput('bios'); + let machine = core.getInput('machine'); let os_image_url = core.getInput('os_image_url'); // await shell("bash run.sh onStarted" );