diff --git a/scripts/Common/Software/Oh My Posh/Manage.ps1 b/scripts/Common/Software/Oh My Posh/Manage.ps1 index 131cd4e2..0c7c7e34 100644 --- a/scripts/Common/Software/Oh My Posh/Manage.ps1 +++ b/scripts/Common/Software/Oh My Posh/Manage.ps1 @@ -34,7 +34,16 @@ Start-SoftwareInstaller @PSBoundParameters ` $root = "$($IsWindows ? $env:AppData : "~/.config")/oh-my-posh"; $path = Join-Path $root "$($theme.name).omp.json"; $null = New-Item -Force -ItemType Directory $root; - Set-Content $path (wsl cat $theme.source); + + Set-Content $path ( + & { + if ($IsWindows) { + wsl cat $theme.source + } else { + cat $theme.source + } + }); + $theme = [string] $path; }