Skip to content

Commit de5867b

Browse files
niheavenbrian6932
authored andcommitted
fix(core): Add 'PSObject.Copy()' to 'substitute()' (ScoopInstaller#5962)
1 parent cd9fa9d commit de5867b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/autoupdate.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@ function Update-ManifestProperty {
365365
}
366366
} elseif ($Manifest.$currentProperty -and $Manifest.autoupdate.$currentProperty) {
367367
# Update other property (global)
368-
$autoupdateProperty = $Manifest.autoupdate.$currentProperty.PSObject.Copy()
368+
$autoupdateProperty = $Manifest.autoupdate.$currentProperty
369369
$newValue = substitute $autoupdateProperty $Substitutions
370370
if (($autoupdateProperty.GetType().Name -eq 'Object[]') -and ($autoupdateProperty.Length -eq 1)) {
371371
# Make sure it's an array

0 commit comments

Comments
 (0)