diff --git a/scripts/publish-github-release.ps1 b/scripts/publish-github-release.ps1 index 7f78181898..5c61367afa 100644 --- a/scripts/publish-github-release.ps1 +++ b/scripts/publish-github-release.ps1 @@ -57,6 +57,7 @@ function Invoke-GhJson { function Invoke-GhUpload { param([Parameter(Mandatory)][string]$Path) + $gh = Get-Command gh -ErrorAction Stop $previousErrorActionPreference = $ErrorActionPreference try { $ErrorActionPreference = 'Continue'