Skip to content

Commit

Permalink
(maint) Corrected casing of PowerShell
Browse files Browse the repository at this point in the history
Powershell -> PowerShell
  • Loading branch information
gep13 committed Jan 10, 2022
1 parent 05c72d8 commit f2de491
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion nuget/chocolatey/tools/init.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ After you have run Initialize-Chocolatey, you can safely uninstall the chocolate
----------
Alternative NuGet -
----------
If you are not using NuGet in Visual Studio, please navigate to the directory with the chocolateysetup.psm1 and run that in Powershell, followed by Initialize-Chocolatey.
If you are not using NuGet in Visual Studio, please navigate to the directory with the chocolateysetup.psm1 and run that in PowerShell, followed by Initialize-Chocolatey.
Upgrade is the same, just run Initialize-Chocolatey again.
----------
Once you've run initialize or upgrade, you can uninstall this package from the local project without affecting your chocolatey repository.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ param(
Write-Warning "Missing package checksums are not allowed (by default for HTTP/FTP, `n HTTPS when feature 'allowEmptyChecksumsSecure' is disabled) for `n safety and security reasons. Although we strongly advise against it, `n if you need this functionality, please set the feature `n 'allowEmptyChecksums' ('choco feature enable -n `n allowEmptyChecksums') `n or pass in the option '--allow-empty-checksums'. You can also pass `n checksums at runtime (recommended). See `choco install -?` for details."
Write-Debug "If you are a maintainer attempting to determine the checksum for packaging purposes, please run `n 'choco install checksum' and run 'checksum -t sha256 -f $file' `n Ensure you do this for all remote resources."
if ($PSVersionTable.PSVersion.Major -ge 4){
Write-Debug "Because you are running Powershell with a major version of v4 or greater, you could also opt to run `n '(Get-FileHash -Path $file -Algorithm SHA256).Hash' `n rather than install a separate tool."
Write-Debug "Because you are running PowerShell with a major version of v4 or greater, you could also opt to run `n '(Get-FileHash -Path $file -Algorithm SHA256).Hash' `n rather than install a separate tool."
}

if ($env:ChocolateyPowerShellHost -eq 'true') {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ param(
$headers = Get-WebHeaders -Url $url -ErrorAction "Stop"
} catch {
if ($PSVersionTable.PSVersion -lt (New-Object 'Version' 3,0)) {
Write-Debug "Converting Security Protocol to SSL3 only for Powershell v2"
Write-Debug "Converting Security Protocol to SSL3 only for PowerShell v2"
# this should last for the entire duration
$originalProtocol = [System.Net.ServicePointManager]::SecurityProtocol
[System.Net.ServicePointManager]::SecurityProtocol = [System.Net.SecurityProtocolType]::Ssl3
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ public virtual void configure_argument_parser(OptionSet optionSet, ChocolateyCon
"ForceDependencies - Force dependencies to be reinstalled when force installing package(s). Must be used in conjunction with --force. Defaults to false.",
option => configuration.ForceDependencies = option != null)
.Add("n|skippowershell|skip-powershell|skipscripts|skip-scripts|skip-automation-scripts",
"Skip Powershell - Do not run chocolateyInstall.ps1. Defaults to false.",
"Skip PowerShell - Do not run chocolateyInstall.ps1. Defaults to false.",
option => configuration.SkipPackageInstallProvider = option != null)
.Add("u=|user=",
"User - used with authenticated feeds. Defaults to empty.",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public virtual void configure_argument_parser(OptionSet optionSet, ChocolateyCon
"RemoveDependencies - Uninstall dependencies when uninstalling package(s). Defaults to false.",
option => configuration.ForceDependencies = option != null)
.Add("n|skippowershell|skip-powershell|skipscripts|skip-scripts|skip-automation-scripts",
"Skip Powershell - Do not run chocolateyUninstall.ps1. Defaults to false.",
"Skip PowerShell - Do not run chocolateyUninstall.ps1. Defaults to false.",
option => configuration.SkipPackageInstallProvider = option != null)
.Add("ignorepackagecodes|ignorepackageexitcodes|ignore-package-codes|ignore-package-exit-codes",
"IgnorePackageExitCodes - Exit with a 0 for success and 1 for non-success, no matter what package scripts provide for exit codes. Overrides the default feature '{0}' set to '{1}'. Available in 0.9.10+.".format_with(ApplicationParameters.Features.UsePackageExitCodes, configuration.Features.UsePackageExitCodes.to_string()),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public virtual void configure_argument_parser(OptionSet optionSet, ChocolateyCon
"IgnoreDependencies - Ignore dependencies when upgrading package(s). Defaults to false.",
option => configuration.IgnoreDependencies = option != null)
.Add("n|skippowershell|skip-powershell|skipscripts|skip-scripts|skip-automation-scripts",
"Skip Powershell - Do not run chocolateyInstall.ps1. Defaults to false.",
"Skip PowerShell - Do not run chocolateyInstall.ps1. Defaults to false.",
option => configuration.SkipPackageInstallProvider = option != null)
.Add("failonunfound|fail-on-unfound",
"Fail On Unfound Packages - If a package is not found in sources specified, fail instead of warn.",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,7 @@ public virtual void handle_package_result(PackageResult packageResult, Chocolate
}
else
{
if (config.Information.PlatformType != PlatformType.Windows) this.Log().Info(ChocolateyLoggers.Important, () => " Skipping Powershell and shimgen portions of the install due to non-Windows.");
if (config.Information.PlatformType != PlatformType.Windows) this.Log().Info(ChocolateyLoggers.Important, () => " Skipping PowerShell and shimgen portions of the install due to non-Windows.");
}

if (packageResult.Success)
Expand Down Expand Up @@ -820,7 +820,7 @@ private void before_package_modify(PackageResult packageResult, ChocolateyConfig
}
else
{
if (config.Information.PlatformType != PlatformType.Windows) this.Log().Info(ChocolateyLoggers.Important, () => " Skipping beforemodify Powershell script due to non-Windows.");
if (config.Information.PlatformType != PlatformType.Windows) this.Log().Info(ChocolateyLoggers.Important, () => " Skipping beforemodify PowerShell script due to non-Windows.");
}
}

Expand Down Expand Up @@ -1006,7 +1006,7 @@ public virtual void handle_package_uninstall(PackageResult packageResult, Chocol
}
else
{
this.Log().Info(ChocolateyLoggers.Important, () => " Skipping Powershell, shimgen, and autoUninstaller portions of the uninstall due to non-Windows.");
this.Log().Info(ChocolateyLoggers.Important, () => " Skipping PowerShell, shimgen, and autoUninstaller portions of the uninstall due to non-Windows.");
}

if (packageResult.Success)
Expand Down

0 comments on commit f2de491

Please sign in to comment.