Skip to content

Commit

Permalink
support newer versions of wt that use settings.json
Browse files Browse the repository at this point in the history
  • Loading branch information
jantari committed May 23, 2020
1 parent 2ae03a7 commit acd5a2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion poshwal.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -879,7 +879,7 @@ if ($Apply) {
yellow = "#{0}" -f $themeColorPalette[6].Name.Substring(2)
}

[array]$wtCfgFile = Get-ChildItem -LiteralPath "$env:LOCALAPPDATA\Packages\$($wt.PackageFamilyName)" -Filter 'profiles.json' -Recurse
[array]$wtCfgFile = Get-ChildItem -LiteralPath "$env:LOCALAPPDATA\Packages\$($wt.PackageFamilyName)" -Filter '*.json' -Recurse | Where-Object { $_.Name -in 'settings.json', 'profiles.json' }
if ($wtCfgFile.Count -eq 1) {
$wtSettings = Get-Content -LiteralPath $wtCfgFile.FullName | ConvertFrom-Json
if ($wtSettings.schemes.name -contains 'Generated by poshwal') {
Expand Down

0 comments on commit acd5a2f

Please sign in to comment.