Skip to content

Commit 2bb14e9

Browse files
authored
Merge pull request #530 from adamralph/patch-2
fix env var condition in Push.ps1
2 parents 2201472 + 1d3c729 commit 2bb14e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Push.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
$scriptName = $MyInvocation.MyCommand.Name
22
$artifacts = "./artifacts"
33

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

0 commit comments

Comments
 (0)