From e0ed130e58f58d5c281f90e984be746864dbd2fa Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Wed, 26 Jul 2023 15:35:22 +0200 Subject: [PATCH] Fix non-functioning code --- scripts/Windows/Scripts/AppAssociations.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/Windows/Scripts/AppAssociations.ps1 b/scripts/Windows/Scripts/AppAssociations.ps1 index 72f0167f..2eac3426 100644 --- a/scripts/Windows/Scripts/AppAssociations.ps1 +++ b/scripts/Windows/Scripts/AppAssociations.ps1 @@ -21,7 +21,7 @@ $null = New-Module { if ($candidates.Count -eq 1) { $association = $candidates[0]; } else { - $association = ($associations.SelectNodes([AppAssociations]::associationSelector) | Select-Object -Last 1)[0].CloneNode(); + $association = ($associations.SelectNodes([AppAssociations]::associationSelector) | Select-Object -Last 1).CloneNode($true); $association.Identifier = $identifier; $association = $associations.AppendChild($association); }