File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change 4
4
[string ]$FileName = ' Azure.Sdk.Tools.Cli' ,
5
5
[string ]$Package = ' azsdk' ,
6
6
[string ]$Version , # Default to latest
7
- [string ]$InstallDirectory = ( Join-Path $HOME " .azure-sdk-mcp " " azsdk " ) ,
7
+ [string ]$InstallDirectory = ' ' ,
8
8
[string ]$Repository = ' Azure/azure-sdk-tools' ,
9
9
[string ]$RunDirectory = (Resolve-Path (Join-Path $PSScriptRoot .. .. ..)),
10
10
[switch ]$Run ,
@@ -14,6 +14,11 @@ param(
14
14
15
15
$ErrorActionPreference = " Stop"
16
16
17
+ if (-not $InstallDirectory )
18
+ {
19
+ $homeDir = if ($env: HOME ) { $env: HOME } else { $env: USERPROFILE }
20
+ $InstallDirectory = (Join-Path $homeDir " .azure-sdk-mcp" " azsdk" )
21
+ }
17
22
. (Join-Path $PSScriptRoot ' ..' ' scripts' ' Helpers' ' AzSdkTool-Helpers.ps1' )
18
23
19
24
if ($Clean ) {
You can’t perform that action at this time.
0 commit comments