Skip to content

Commit

Permalink
refactor: remove Expand-Archive workaround (#216)
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkTiedemann committed Jun 23, 2022
1 parent 4039a2b commit 5d81608
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions install.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,7 @@ if (!(Test-Path $BinDir)) {

Invoke-WebRequest $DenoUri -OutFile $DenoZip -UseBasicParsing

if (Get-Command Expand-Archive -ErrorAction SilentlyContinue) {
Expand-Archive $DenoZip -Destination $BinDir -Force
} else {
if (Test-Path $DenoExe) {
Remove-Item $DenoExe
}
Add-Type -AssemblyName System.IO.Compression.FileSystem
[IO.Compression.ZipFile]::ExtractToDirectory($DenoZip, $BinDir)
}
Expand-Archive $DenoZip -Destination $BinDir -Force

Remove-Item $DenoZip

Expand Down

0 comments on commit 5d81608

Please sign in to comment.