Skip to content

Commit 4138166

Browse files
authored
Merge pull request #84 from SumoLogic/get-package-error
fix(install): Suppress error when getting installed package version
2 parents 2a146ee + 8e265e8 commit 4138166

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

install-script/install.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ function Get-InstalledApplicationVersion {
201201
}
202202

203203
function Get-InstalledPackageVersion {
204-
$package = Get-Package -name "OpenTelemetry Collector"
204+
$package = Get-Package -name "OpenTelemetry Collector" -EA Ignore
205205

206206
if ($package -eq $null) {
207207
return

0 commit comments

Comments
 (0)