fix(pwsh): return cache path correctly

resolves #1858
This commit is contained in:
Jan De Dobbeleer 2022-03-03 07:54:45 +01:00 committed by Jan De Dobbeleer
parent 9cb0775b25
commit c9f5c09fd6

View file

@ -14,7 +14,7 @@ function Get-CachePath {
if (Test-Path -Path $cachePath) {
return $cachePath
}
New-Item -Path $Path -Name $child -ItemType "directory"
$null = New-Item -Path $Path -Name $child -ItemType Directory
return $cachePath
}