File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
src/Aks/Aks.Autorest/custom Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -175,11 +175,12 @@ Function Install-Kubectl
175
175
{
176
176
$Destination = [System.IO.Path ]::Combine($env: USERPROFILE , " .azure-kubectl" )
177
177
}
178
- $Destination = Resolve-Path - Path $Destination
179
178
If (-not (Test-Path - Path $Destination ))
180
179
{
181
180
New-Item - Path $Destination - ItemType Directory
182
181
}
182
+ $Destination = Resolve-Path - Path $Destination
183
+
183
184
If (($Null -Eq $Version ) -or (" " -Eq $Version ))
184
185
{
185
186
$url = " $baseUrl /stable.txt"
@@ -269,11 +270,11 @@ Function Install-Kubelogin
269
270
{
270
271
$Destination = [System.IO.Path ]::Combine($env: USERPROFILE , " .azure-kubelogin" )
271
272
}
272
- $Destination = Resolve-Path - Path $Destination
273
273
If (-not (Test-Path - Path $Destination ))
274
274
{
275
275
New-Item - Path $Destination - ItemType Directory
276
276
}
277
+ $Destination = Resolve-Path - Path $Destination
277
278
If (($Null -Eq $Version ) -or (" " -Eq $Version ))
278
279
{
279
280
$latestVersionInfo = (Invoke-WebRequest - Uri $latestReleaseUrl ).Content | ConvertFrom-Json
You can’t perform that action at this time.
0 commit comments