fix: suppress the file name printing in unzip

This commit is contained in:
Amin Yahyaabadi 2024-09-08 05:04:28 -07:00
parent ed70b16a4c
commit 8ffde703f2
No known key found for this signature in database
GPG Key ID: F52AF77F636088F0
5 changed files with 5 additions and 5 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -92,7 +92,7 @@ export function extractExe(file: string, dest: string) {
export async function extractZip(file: string, dest: string) { export async function extractZip(file: string, dest: string) {
// if unzip is available use it // if unzip is available use it
if (which.sync("unzip", { nothrow: true }) !== null) { if (which.sync("unzip", { nothrow: true }) !== null) {
await execa("unzip", [file, "-d", dest], { stdio: "inherit" }) await execa("unzip", ["-q", file, "-d", dest], { stdio: "inherit" })
await grantUserWriteAccess(dest) await grantUserWriteAccess(dest)
return dest return dest
} }