diff --git a/powerbox.build.ps1 b/powerbox.build.ps1 index 6b30967..59d0718 100644 --- a/powerbox.build.ps1 +++ b/powerbox.build.ps1 @@ -123,7 +123,7 @@ task DoInstall { } task DoPublish { - if (!$ENV:repo_tag -or !(Test-Path $env:NUGET_API_KEY)) { + if (!$ENV:repo_tag -or !($env:NUGET_API_KEY)) { [pscustomobject]@{ REPO_TAG = $env:REPO_TAG API_KEY = [bool]$env:NUGET_API_KEY