Skip to content

Commit

Permalink
fix(core): Add 'PSObject.Copy()' to 'substitute()' (ScoopInstaller#5962)
Browse files Browse the repository at this point in the history
  • Loading branch information
niheaven authored and brian6932 committed Jun 1, 2024
1 parent cd9fa9d commit de5867b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/autoupdate.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ function Update-ManifestProperty {
}
} elseif ($Manifest.$currentProperty -and $Manifest.autoupdate.$currentProperty) {
# Update other property (global)
$autoupdateProperty = $Manifest.autoupdate.$currentProperty.PSObject.Copy()
$autoupdateProperty = $Manifest.autoupdate.$currentProperty
$newValue = substitute $autoupdateProperty $Substitutions
if (($autoupdateProperty.GetType().Name -eq 'Object[]') -and ($autoupdateProperty.Length -eq 1)) {
# Make sure it's an array
Expand Down

0 comments on commit de5867b

Please sign in to comment.