From c889b66e93c4e31c7ab1ba11acedd5cd648621e8 Mon Sep 17 00:00:00 2001 From: Howard Wu Date: Sun, 26 Mar 2023 03:02:05 +0800 Subject: [PATCH] Remove the warning that the installation check command was not found --- installer/Install.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/installer/Install.ps1 b/installer/Install.ps1 index 833fdf0..7128fc4 100644 --- a/installer/Install.ps1 +++ b/installer/Install.ps1 @@ -41,7 +41,7 @@ Function Test-CommandExists { $oldPreference = $ErrorActionPreference $ErrorActionPreference = 'stop' try { if (Get-Command $command) { RETURN $true } } - Catch { Write-Host "$command does not exist"; RETURN $false } + Catch { RETURN $false } Finally { $ErrorActionPreference = $oldPreference } } #end function test-CommandExists