Fix typo
This commit is contained in:
parent
63e9bc36ca
commit
e49d6af4e1
1 changed files with 1 additions and 1 deletions
|
@ -7,7 +7,7 @@ function Install-SoftwarePackage([Context] $context, [string] $location, [string
|
||||||
if (-not ($local.IsPresent)) {
|
if (-not ($local.IsPresent)) {
|
||||||
Write-Information "Determining the file name of $location";
|
Write-Information "Determining the file name of $location";
|
||||||
$tempDir = $context.GetTempDirectory();
|
$tempDir = $context.GetTempDirectory();
|
||||||
$request = [System.Net.WebRequest]::Create($url);
|
$request = [System.Net.WebRequest]::Create($location);
|
||||||
$request.AllowAutoRedirect = $false;
|
$request.AllowAutoRedirect = $false;
|
||||||
$response = $request.GetResponse();
|
$response = $request.GetResponse();
|
||||||
$fileName = [System.IO.Path]::GetFileName($response.GetResponseHeader("Location"));
|
$fileName = [System.IO.Path]::GetFileName($response.GetResponseHeader("Location"));
|
||||||
|
|
Loading…
Reference in a new issue