summaryrefslogtreecommitdiffstats
path: root/install.ps1
diff options
context:
space:
mode:
authorBen <benkloster@gmail.com>2020-06-07 03:57:23 +0200
committerGitHub <noreply@github.com>2020-06-07 10:57:23 +0900
commit06d63a862e900dcc6ee6c2335120cc8cb939698f (patch)
tree2cecccf542524a06eef56ba5c51cbca2a0fdd0b0 /install.ps1
parent43d1c4c4b581929a1d440992c0f73531158e28a5 (diff)
Fully qualify Expand-Archive (#2066)
If a user has the Powershell Community Extensions installed, it comes with another command Expand-Archive that doesn't have a DestinationPath argument, causing an error.
Diffstat (limited to 'install.ps1')
-rw-r--r--install.ps12
1 files changed, 1 insertions, 1 deletions
diff --git a/install.ps1 b/install.ps1
index 94bf3832..2c537f9a 100644
--- a/install.ps1
+++ b/install.ps1
@@ -57,7 +57,7 @@ function download {
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
(New-Object Net.WebClient).DownloadFile($url, $ExecutionContext.SessionState.Path.GetUnresolvedProviderPathFromPSPath("$temp"))
if ($?) {
- (Expand-Archive -Path $temp -DestinationPath .); (Remove-Item $temp)
+ (Microsoft.PowerShell.Archive\Expand-Archive -Path $temp -DestinationPath .); (Remove-Item $temp)
} else {
$binary_error="Failed to download with powershell"
}