Skip to content

Commit

Permalink
7zip in w_try_unzip needs -y flag to autoconfirm
Browse files Browse the repository at this point in the history
Otherwise it fails due to not receiving a response:

Would you like to replace the existing file:
Path: C:\windows\syswow64\ddraw.dll
Size: 1053865 bytes (1030 KiB)
Modified: 2024-01-28 17:55:30
with the file from archive:
Path: ddraw.dll
Size: 316928 bytes (310 KiB)
Modified: 2023-01-16 21:18:30
? (Y)es / (N)o / (A)lways / (S)kip all / A(u)to rename all / (Q)uit?
Archives with Errors: 1

pending PR:
Winetricks/winetricks#2182
  • Loading branch information
GloriousEggroll committed Jan 29, 2024
1 parent 3efa471 commit c872623
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion winetricks
Original file line number Diff line number Diff line change
Expand Up @@ -940,7 +940,7 @@ w_try_unzip()
w_try_cd "${PWD}"

# errors out if there is a space between -o and path
w_try "${WINE}" "${W_PROGRAMS_X86_WIN}\\7-Zip\\7z.exe" x "$(w_pathconv -w "${zipfile}")" -o"$(w_pathconv -w "${destdir}")" "$@"
w_try "${WINE}" "${W_PROGRAMS_X86_WIN}\\7-Zip\\7z.exe" x "$(w_pathconv -w "${zipfile}")" -y -o"$(w_pathconv -w "${destdir}")" "$@"
}

### End of w_try ###
Expand Down

0 comments on commit c872623

Please sign in to comment.