Skip to content

Commit

Permalink
Fix update error message output
Browse files Browse the repository at this point in the history
  • Loading branch information
jvlflame committed Jul 6, 2020
1 parent 0b4afb1 commit 1019ff8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Javinizer/Private/Update-Javinizer.ps1
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 1019ff8

Please sign in to comment.