Skip to content

Commit

Permalink
Improvements to how Microsoft.WinGet.Client updates work through PSGe…
Browse files Browse the repository at this point in the history
…t 1.0 (fix #3004)
  • Loading branch information
marticliment committed Dec 9, 2024
1 parent cb96683 commit 11a547c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ protected override OperationVeredict _getOperationResult(
return OperationVeredict.AutoRetry;
}

if (output_string.Contains("'Scope'") && output_string.Contains("ParameterBindingException") && !package.OverridenOptions.PowerShell_DoNotSetScopeParameter)
if (output_string.Contains("-Scope") && output_string.Contains("NamedParameterNotFound") && !package.OverridenOptions.PowerShell_DoNotSetScopeParameter)
{
package.OverridenOptions.PowerShell_DoNotSetScopeParameter = true;
return OperationVeredict.AutoRetry;
Expand Down

0 comments on commit 11a547c

Please sign in to comment.