Skip to content

Commit 97aabe5

Browse files
Fix PowerShell HOME variable collision
1 parent e911a59 commit 97aabe5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

public/install.ps1

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ if (-not $PSBoundParameters.ContainsKey("GitDir")) {
3535
}
3636

3737
if ([string]::IsNullOrWhiteSpace($GitDir)) {
38-
$home = [Environment]::GetFolderPath("UserProfile")
39-
$GitDir = (Join-Path $home "clawdbot")
38+
$userHome = [Environment]::GetFolderPath("UserProfile")
39+
$GitDir = (Join-Path $userHome "clawdbot")
4040
}
4141

4242
# Check for Node.js
@@ -244,8 +244,8 @@ function Get-LegacyRepoDir {
244244
if (-not [string]::IsNullOrWhiteSpace($env:CLAWDBOT_GIT_DIR)) {
245245
return $env:CLAWDBOT_GIT_DIR
246246
}
247-
$home = [Environment]::GetFolderPath("UserProfile")
248-
return (Join-Path $home "clawdbot")
247+
$userHome = [Environment]::GetFolderPath("UserProfile")
248+
return (Join-Path $userHome "clawdbot")
249249
}
250250

251251
function Remove-LegacySubmodule {

0 commit comments

Comments
 (0)