From 1019ff8fd01b384415939158e6dda445bc595022 Mon Sep 17 00:00:00 2001 From: jvlflame Date: Mon, 6 Jul 2020 10:57:21 -0700 Subject: [PATCH] Fix update error message output --- src/Javinizer/Private/Update-Javinizer.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Javinizer/Private/Update-Javinizer.ps1 b/src/Javinizer/Private/Update-Javinizer.ps1 index ec950929..645e094c 100644 --- a/src/Javinizer/Private/Update-Javinizer.ps1 +++ b/src/Javinizer/Private/Update-Javinizer.ps1 @@ -1,6 +1,6 @@ function Update-Javinizer { - $currentVer = (Get-InstalledModule -Name Javinizer).Version | Out-Null - $latestVer = (Find-Module -Name Javinizer).Version | Out-Null + $currentVer = (Get-InstalledModule -Name Javinizer -ErrorAction 'SilentlyContinue').Version + $latestVer = (Find-Module -Name Javinizer -ErrorAction 'SilentlyContinue').Version if ($null -eq $currentVer) { # do nothing