From c9f5c09fd634cb529defabf0026233a46eb0f8f5 Mon Sep 17 00:00:00 2001 From: Jan De Dobbeleer Date: Thu, 3 Mar 2022 07:54:45 +0100 Subject: [PATCH] fix(pwsh): return cache path correctly resolves #1858 --- packages/powershell/oh-my-posh.psm1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/powershell/oh-my-posh.psm1 b/packages/powershell/oh-my-posh.psm1 index e9b2736d..591641dc 100644 --- a/packages/powershell/oh-my-posh.psm1 +++ b/packages/powershell/oh-my-posh.psm1 @@ -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 }