From 67baf43a4d62374e84fedfb7d84776fecd4ac118 Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Tue, 18 Jul 2023 21:14:09 +0200 Subject: [PATCH] Fix incorrect variable names --- scripts/Windows/Config/Windows/InstallUser.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/Windows/Config/Windows/InstallUser.ps1 b/scripts/Windows/Config/Windows/InstallUser.ps1 index 52b3a188..054aa7e5 100644 --- a/scripts/Windows/Config/Windows/InstallUser.ps1 +++ b/scripts/Windows/Config/Windows/InstallUser.ps1 @@ -19,7 +19,7 @@ $startLayout = Get-Content "$startLayoutFile" | ConvertFrom-Json; $startLayout.pinnedList = $startLayout.pinnedList | Where-Object { return -not ( - ($pinnedItem.desktopAppLink -like "*Microsoft Edge*") -or + ($_.desktopAppLink -like "*Microsoft Edge*") -or [System.Linq.Enumerable]::Any( @( "*MicrosoftOfficeHub*", @@ -32,7 +32,7 @@ $startLayout.pinnedList = $startLayout.pinnedList | Where-Object { "*Facebook*"), [System.Func[System.Object,bool]]{ param($pattern) - return $pinnedItem.packageAppId -like "$pattern"; + return $_.packageAppId -like "$pattern"; })); }