Skip to content

Commit

Permalink
fix: Replace Expand-Archive with System.IO.Compression.ZipFile
Browse files Browse the repository at this point in the history
  • Loading branch information
KapJI authored and twpayne committed Dec 10, 2024
1 parent fc6fcaa commit 57ee74a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion assets/scripts/install.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,8 @@ function Expand-ChezmoiArchive ($path) {
& tar --extract --gzip --file $path --directory $parent
}
if ($path.EndsWith('.zip')) {
Expand-Archive -Path $path -DestinationPath $parent
Add-Type -AssemblyName System.IO.Compression.FileSystem
[System.IO.Compression.ZipFile]::ExtractToDirectory($path, $parent)
}
}

Expand Down

0 comments on commit 57ee74a

Please sign in to comment.