Skip to content

Commit

Permalink
fix env var condition in Push.ps1
Browse files Browse the repository at this point in the history
  • Loading branch information
adamralph committed Jun 29, 2020
1 parent 2201472 commit 1d3c729
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Push.ps1
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
$scriptName = $MyInvocation.MyCommand.Name
$artifacts = "./artifacts"

if ($Env:MYGET_MEDIATR_CI_API_KEY -eq $null) {
if ([string]::IsNullOrEmpty($Env:MYGET_MEDIATR_CI_API_KEY)) {
Write-Host "${scriptName}: MYGET_MEDIATR_CI_API_KEY is empty or not set. Skipped pushing package(s)."
} else {
Get-ChildItem $artifacts -Filter "*.nupkg" | ForEach-Object {
Expand Down

0 comments on commit 1d3c729

Please sign in to comment.