Skip to content

Commit

Permalink
Silence the output of 7z on Windows
Browse files Browse the repository at this point in the history
* It's quite verbose (22 lines) and there is no quiet flag.
  • Loading branch information
eregon committed Feb 9, 2020
1 parent 4e03210 commit 34f3cbd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion windows.js
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 34f3cbd

Please sign in to comment.