From 57ee74ada4d93f5c307951190377e02036d870fc Mon Sep 17 00:00:00 2001 From: Ruslan Sayfutdinov Date: Mon, 9 Dec 2024 16:39:29 +0000 Subject: [PATCH] fix: Replace Expand-Archive with System.IO.Compression.ZipFile --- assets/scripts/install.ps1 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/assets/scripts/install.ps1 b/assets/scripts/install.ps1 index 8928ec83e1a..0596f31905e 100644 --- a/assets/scripts/install.ps1 +++ b/assets/scripts/install.ps1 @@ -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) } }