Skip to content

Commit

Permalink
Merge pull request #530 from adamralph/patch-2
Browse files Browse the repository at this point in the history
fix env var condition in Push.ps1
  • Loading branch information
jbogard committed Jun 29, 2020
2 parents 2201472 + 1d3c729 commit 2bb14e9
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 2bb14e9

Please sign in to comment.