Skip to content

Commit

Permalink
V7.25
Browse files Browse the repository at this point in the history
  • Loading branch information
mniederw committed Aug 7, 2023
1 parent 974ee6b commit ed21d3a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion MnCommonPsToolLib/MnCommonPsToolLib.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -679,7 +679,7 @@ function ProcessListInstalledAppx (){ if( ! (OsIsWindows) ){ return
# If you want to load this module into PowerShell please use 'Import-Module -SkipEditionCheck' syntax.
}
return [String[]] (@()+(Get-AppxPackage | Where-Object{$null -ne $_} |
ForEach-Object{ "$($_.PackageFullName)" } | Sort)); }
ForEach-Object{ "$($_.PackageFullName)" } | Sort-Object)); }
function ProcessGetCommandInEnvPathOrAltPaths ( [String] $commandNameOptionalWithExtension, [String[]] $alternativePaths = @(), [String] $downloadHintMsg = ""){
[System.Management.Automation.CommandInfo] $cmd = Get-Command -CommandType Application -Name $commandNameOptionalWithExtension -ErrorAction SilentlyContinue | Select-Object -First 1;
if( $null -ne $cmd ){ return [String] $cmd.Path; }
Expand Down
2 changes: 1 addition & 1 deletion MnCommonPsToolLib/MnCommonPsToolLib_Windows.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -1244,7 +1244,7 @@ function ToolInstallNuPckMgrAndCommonPsGalMo(){
Select-Object Name, Status, Version, Source |
StreamToTableString | StreamToStringIndented;
OutProgress "List of modules:";
Get-Module | Sort Name | Select-Object Name,ModuleType,Version,Path |
Get-Module | Sort-Object Name | Select-Object Name,ModuleType,Version,Path |
StreamToTableString | StreamToStringIndented;
OutProgress "List of installed modules having an installdate:";
Get-InstalledModule | Where-Object{$null -ne $_ -and $null -ne $_.InstalledDate } |
Expand Down
2 changes: 1 addition & 1 deletion UnitTests/MnCommonPsToolLibUnitTest_Help_Os.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ function Test_Help_Os(){
# HelpGetType ( [Object] $obj ){ return [String] $obj.GetType(); }
# OsPsVersion (){ return [String] (""+$Host.Version.Major+"."+$Host.Version.Minor); } # alternative: $PSVersionTable.PSVersion.Major
# OsIsWinVistaOrHigher (){ return [Boolean] ([Environment]::OSVersion.Version -ge (new-object "Version" 6,0)); }
# OsIsWin7OrHigher (){ return [Boolean] ([Environment]::OSVersion.Version -ge (new-object "Version" 6,1)); }
Assert (OsIsWin7OrHigher);
Assert (OsIs64BitOs);
# OsIsHibernateEnabled (){
Assert ((OsInfoMainboardPhysicalMemorySum) -gt 1000000000);
Expand Down

0 comments on commit ed21d3a

Please sign in to comment.