Skip to content

Commit 94d373b

Browse files
authored
Merge pull request chocolatey#2753 from TheCakeIsNaOH/set-arguments
(chocolatey#2752) Set correct items when overriding remembered arguments
2 parents 486cd95 + aff4ec9 commit 94d373b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/chocolatey/infrastructure.app/services/NugetService.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1007,9 +1007,9 @@ protected virtual ChocolateyConfiguration set_package_config_for_upgrade(Chocola
10071007

10081008
// there may be overrides from the user running upgrade
10091009
if (!string.IsNullOrWhiteSpace(originalConfig.SourceCommand.Username)) config.SourceCommand.Username = originalConfig.SourceCommand.Username;
1010-
if (!string.IsNullOrWhiteSpace(originalConfig.SourceCommand.Password)) config.SourceCommand.Username = originalConfig.SourceCommand.Password;
1011-
if (!string.IsNullOrWhiteSpace(originalConfig.SourceCommand.Certificate)) config.SourceCommand.Username = originalConfig.SourceCommand.Certificate;
1012-
if (!string.IsNullOrWhiteSpace(originalConfig.SourceCommand.CertificatePassword)) config.SourceCommand.Username = originalConfig.SourceCommand.CertificatePassword;
1010+
if (!string.IsNullOrWhiteSpace(originalConfig.SourceCommand.Password)) config.SourceCommand.Password = originalConfig.SourceCommand.Password;
1011+
if (!string.IsNullOrWhiteSpace(originalConfig.SourceCommand.Certificate)) config.SourceCommand.Certificate = originalConfig.SourceCommand.Certificate;
1012+
if (!string.IsNullOrWhiteSpace(originalConfig.SourceCommand.CertificatePassword)) config.SourceCommand.CertificatePassword = originalConfig.SourceCommand.CertificatePassword;
10131013

10141014
return originalConfig;
10151015
}

0 commit comments

Comments
 (0)