From 34f3cbdfdbce92ebb93436ede45320ed4d6bf6d4 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 | 5 ++++- windows.js | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/dist/index.js b/dist/index.js index 6bb583f84..ad22d6ac4 100644 --- a/dist/index.js +++ b/dist/index.js @@ -7896,7 +7896,10 @@ 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}:\\`], { + // eslint-disable-next-line no-unused-vars + listeners: { stdout: (data) => {}, stderr: (data) => {} } + }) const rubyPrefix = `${drive}:\\${base}` const [hostedRuby, msys2] = await linkMSYS2() diff --git a/windows.js b/windows.js index 19874db2b..f75aac702 100644 --- a/windows.js +++ b/windows.js @@ -29,7 +29,10 @@ 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}:\\`], { + // eslint-disable-next-line no-unused-vars + listeners: { stdout: (data) => {}, stderr: (data) => {} } + }) const rubyPrefix = `${drive}:\\${base}` const [hostedRuby, msys2] = await linkMSYS2()