fix: workflow

This commit is contained in:
Maarten van Heusden
2024-11-17 09:33:12 +01:00
parent a2daed0739
commit 17434ecaad
2 changed files with 18 additions and 2 deletions

View File

@@ -71,8 +71,9 @@ pub fn unzip(zip_file: &Path) -> io::Result<()> {
io::copy(&mut file, &mut outfile)?;
// Copy over permissions from enclosed file to extracted file on Unix and macOS systems.
if get_os() != "windows" {
// Copy over permissions from enclosed file to extracted file on UNIX systems.
#[cfg(unix)]
{
use std::os::unix::fs::PermissionsExt;
// If the mode `file.unix_mode()` is something (not None), copy it over to the extracted file.