Skip to content

Commit

Permalink
Merge pull request #3238 from gep13/script-best-practices
Browse files Browse the repository at this point in the history
(doc) Apply scripting best practices to output
  • Loading branch information
AdmiringWorm authored Jun 30, 2023
2 parents 5d1c282 + f973035 commit ddf0df2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ private void ValidateUseOfPackageExitCode(ChocolateyConfiguration config, IColle
Message = @"When attempting to halt execution of a Chocolatey command based on a
request for a system reboot, it is necessary to have the
usePackageExitCodes feature enabled. Use the following command:
choco feature enable -name={0}
choco feature enable --name=""{0}""
to enable this feature (exit code 1).
".FormatWith(ApplicationParameters.Features.UsePackageExitCodes),
Status = ValidationStatus.Error,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ It is recommended that you reboot at your earliest convenience.
being ignored due to the current Chocolatey configuration. If you
want to halt when this occurs, then either set the global feature
using:
choco feature enable -name={0}
choco feature enable --name=""{0}""
or pass the option --exit-when-reboot-detected.
".FormatWith(ApplicationParameters.Features.ExitOnRebootDetected),
Status = ValidationStatus.Warning,
Expand Down

0 comments on commit ddf0df2

Please sign in to comment.