Skip to content

Commit dbb8bdd

Browse files
committed
Expand-ZipArchive: Compatible with Pscx
1 parent aa8513f commit dbb8bdd

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

lib/decompress.ps1

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,8 @@ function Expand-ZipArchive {
179179
}
180180
} else {
181181
# Use Expand-Archive to unzip in PowerShell 5+
182-
Expand-Archive -Path $Path -DestinationPath $DestinationPath -Force
182+
# Compatible with Pscx (https://github.com/Pscx/Pscx)
183+
Microsoft.PowerShell.Archive\Expand-Archive -Path $Path -DestinationPath $DestinationPath -Force
183184
}
184185
if ($Removal) {
185186
# Remove original archive file

0 commit comments

Comments
 (0)