Skip to content

Commit

Permalink
(maint) add kickstarter message
Browse files Browse the repository at this point in the history
  • Loading branch information
ferventcoder committed Nov 2, 2014
1 parent 4dd74f1 commit e01297a
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/chocolatey.config
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<useNuGetForSources>false</useNuGetForSources>
<checksumFiles>true</checksumFiles>
<virusCheck>false</virusCheck>
<ksMessage>true</ksMessage>
<sources>
<source id="chocolatey" value="https://chocolatey.org/api/v2/" />
</sources>
Expand Down
14 changes: 14 additions & 0 deletions src/chocolatey.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,20 @@ if ($badPackages -ne '') {
Write-Host "Command `'$command`' failed (sometimes this indicates a partial failure). Additional info/packages: $badpackages" -BackgroundColor $ErrorColor -ForegroundColor White
}

if ((Get-ConfigValue 'ksMessage') -ne 'false') {
@"
Did you know we are rewriting Chocolatey? The new
version is much more stable and secure.
Find out more and support the future of Chocolatey
at https://bit.ly/chocolateykickstarter
Disable this message by changing ksMessage to false in chocolatey.config.
"@ | Write-Host -ForegroundColor $Warning -BackgroundColor Black

}

if ($chocolateyErrored) {
Write-Debug "Exiting with non-zero exit code."
exit 1
Expand Down

0 comments on commit e01297a

Please sign in to comment.