Skip to content

Commit

Permalink
(chocolateyGH-713) Rename Get-ProcessorBits Get-OSArchitectureWidth
Browse files Browse the repository at this point in the history
Keep around the alias for Get-ProcessorBits though.
  • Loading branch information
ferventcoder committed Jun 3, 2016
1 parent 4238dea commit d4d3fcd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/chocolatey.resources/chocolatey.resources.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
<EmbeddedResource Include="helpers\functions\Get-ChocolateyUnzip.ps1" />
<EmbeddedResource Include="helpers\functions\Get-ChocolateyWebFile.ps1" />
<EmbeddedResource Include="helpers\functions\Get-FtpFile.ps1" />
<EmbeddedResource Include="helpers\functions\Get-ProcessorBits.ps1" />
<EmbeddedResource Include="helpers\functions\Get-OSArchitectureWidth.ps1" />
<EmbeddedResource Include="helpers\functions\Get-UACEnabled.ps1" />
<EmbeddedResource Include="helpers\functions\Get-VirusCheckValid.ps1" />
<EmbeddedResource Include="helpers\functions\Get-WebFile.ps1" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@
# See the License for the specific language governing permissions and
# limitations under the License.

function Get-ProcessorBits {
function Get-OSArchitectureWidth {
<#
.SYNOPSIS
Get the system architecture address width.
Get the operating system architecture address width.
.DESCRIPTION
This will return the system architecture address width (probably 32 or
Expand All @@ -42,7 +42,7 @@ depending on wether or not the bit width matches.
param(
$compare
)
Write-Debug "Running 'Get-ProcessorBits'"
Write-Debug "Running 'Get-OSArchitectureWidth'"

$bits = 64
if ([System.IntPtr]::Size -eq 4) {
Expand All @@ -58,3 +58,5 @@ param(
return $bits
}
}

Set-Alias Get-ProcessorBits Get-OSArchitectureWidth

0 comments on commit d4d3fcd

Please sign in to comment.