diff --git a/PowerShell/Modules/TUN.Logging/TUN.Logging.psd1 b/PowerShell/Modules/TUN.Logging/TUN.Logging.psd1 index bc2b987..5f5d983 100644 --- a/PowerShell/Modules/TUN.Logging/TUN.Logging.psd1 +++ b/PowerShell/Modules/TUN.Logging/TUN.Logging.psd1 @@ -12,7 +12,7 @@ RootModule = 'TUN.Logging.psm1' # Version number of this module. -ModuleVersion = '1.1.0' +ModuleVersion = '1.1.1' # Supported PSEditions # CompatiblePSEditions = @() @@ -122,7 +122,8 @@ V 1.0.2: Moved markdown link from HelpInfoUri to description V 1.0.3: Fixed icon link V 1.0.4: Bumped required module version V 1.0.5: Bugfixes for logging from console or function, added logging of user -V 1.1.0: Bugfixes for Linux, now compatible with Linux Powershell Core' +V 1.1.0: Bugfixes for Linux, now compatible with Linux Powershell Core +V 1.1.1: Bugfixing fallback color' # Prerelease string of this module # Prerelease = '' diff --git a/PowerShell/Modules/TUN.Logging/TUN.Logging.psm1 b/PowerShell/Modules/TUN.Logging/TUN.Logging.psm1 index aabe3b6..0c707a5 100644 --- a/PowerShell/Modules/TUN.Logging/TUN.Logging.psm1 +++ b/PowerShell/Modules/TUN.Logging/TUN.Logging.psm1 @@ -320,7 +320,7 @@ function Get-ConsoleForegroundColor { try { $Color = $Host.UI.RawUI.ForegroundColor - if([System.Enum]::IsDefined([System.Console] , $Color)) { + if([System.Enum]::IsDefined([System.ConsoleColor] , $Color)) { [ConsoleColor] $RetVal = [ConsoleColor]$Color return [ConsoleColor] $RetVal @@ -346,7 +346,7 @@ function Get-ConsoleBackgroundColor { try { $Color = $Host.UI.RawUI.BackgroundColor - if([System.Enum]::IsDefined([System.Console] , $Color)) { + if([System.Enum]::IsDefined([System.ConsoleColor] , $Color)) { [ConsoleColor] $RetVal = [ConsoleColor]$Color return [ConsoleColor] $RetVal