Skip to content

Commit 04a6a07

Browse files
committed
Silence the output of 7z on Windows
* It's quite verbose (22 lines) and there is no quiet flag.
1 parent 4e03210 commit 04a6a07

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

dist/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

windows.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export async function install(platform, ruby) {
2929
const drive = (process.env['GITHUB_WORKSPACE'] || 'C')[0]
3030

3131
const downloadPath = await tc.downloadTool(url)
32-
await exec.exec(`7z x ${downloadPath} -xr!${base}\\share\\doc -o${drive}:\\`)
32+
await exec.exec('7z', ['x', downloadPath, `-xr!${base}\\share\\doc`, `-o${drive}:\\`], { silent: true })
3333
const rubyPrefix = `${drive}:\\${base}`
3434

3535
const [hostedRuby, msys2] = await linkMSYS2()

0 commit comments

Comments
 (0)