From 71f024b6425a450f587869c94662954c86c2861b Mon Sep 17 00:00:00 2001 From: Benoit Daloze Date: Sun, 9 Feb 2020 18:20:54 +0100 Subject: [PATCH] Silence the output of 7z on Windows * It's quite verbose (22 lines) and there is no quiet flag. --- dist/index.js | 2 +- windows.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/index.js b/dist/index.js index 6bb583f..bed77fa 100644 --- a/dist/index.js +++ b/dist/index.js @@ -7896,7 +7896,7 @@ async function install(platform, ruby) { const drive = (process.env['GITHUB_WORKSPACE'] || 'C')[0] const downloadPath = await tc.downloadTool(url) - await exec.exec(`7z x ${downloadPath} -xr!${base}\\share\\doc -o${drive}:\\`) + await exec.exec('7z', ['x', downloadPath, `-xr!${base}\\share\\doc`, `-o${drive}:\\`], { silent: true }) const rubyPrefix = `${drive}:\\${base}` const [hostedRuby, msys2] = await linkMSYS2() diff --git a/windows.js b/windows.js index 19874db..aac2dfd 100644 --- a/windows.js +++ b/windows.js @@ -29,7 +29,7 @@ export async function install(platform, ruby) { const drive = (process.env['GITHUB_WORKSPACE'] || 'C')[0] const downloadPath = await tc.downloadTool(url) - await exec.exec(`7z x ${downloadPath} -xr!${base}\\share\\doc -o${drive}:\\`) + await exec.exec('7z', ['x', downloadPath, `-xr!${base}\\share\\doc`, `-o${drive}:\\`], { silent: true }) const rubyPrefix = `${drive}:\\${base}` const [hostedRuby, msys2] = await linkMSYS2()