Fix incorrect variable names

This commit is contained in:
Manuel Thalmann 2023-07-18 21:14:09 +02:00
parent 19f3e35446
commit 67baf43a4d

View file

@ -19,7 +19,7 @@ $startLayout = Get-Content "$startLayoutFile" | ConvertFrom-Json;
$startLayout.pinnedList = $startLayout.pinnedList | Where-Object { $startLayout.pinnedList = $startLayout.pinnedList | Where-Object {
return -not ( return -not (
($pinnedItem.desktopAppLink -like "*Microsoft Edge*") -or ($_.desktopAppLink -like "*Microsoft Edge*") -or
[System.Linq.Enumerable]::Any( [System.Linq.Enumerable]::Any(
@( @(
"*MicrosoftOfficeHub*", "*MicrosoftOfficeHub*",
@ -32,7 +32,7 @@ $startLayout.pinnedList = $startLayout.pinnedList | Where-Object {
"*Facebook*"), "*Facebook*"),
[System.Func[System.Object,bool]]{ [System.Func[System.Object,bool]]{
param($pattern) param($pattern)
return $pinnedItem.packageAppId -like "$pattern"; return $_.packageAppId -like "$pattern";
})); }));
} }