mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
Correct case of $PSHOME special variable
This commit is contained in:
@@ -330,7 +330,7 @@ function Test-CanWriteToPsHome
|
||||
$script:CanWriteToPsHome = $true
|
||||
|
||||
try {
|
||||
$testFileName = Join-Path $PSHome (New-Guid).Guid
|
||||
$testFileName = Join-Path $PSHOME (New-Guid).Guid
|
||||
$null = New-Item -ItemType File -Path $testFileName -ErrorAction Stop
|
||||
}
|
||||
catch [System.UnauthorizedAccessException] {
|
||||
|
||||
Reference in New Issue
Block a user