Skip to content
This repository has been archived by the owner on Feb 11, 2020. It is now read-only.

Fix to avoid failure when there are no product dependencies #244

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions tasks/upload-product-and-stemcell/task.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ STEMCELL_VERSION=$(
jq --raw-output \
'
[
.Dependencies[]
.Dependencies[]?
| select(.Release.Product.Name | contains("Stemcells"))
| .Release.Version
]
Expand Down Expand Up @@ -49,7 +49,7 @@ if [ -n "$STEMCELL_VERSION" ]; then
product_slug=$(
jq --raw-output \
'
if any(.Dependencies[]; select(.Release.Product.Name | contains("Stemcells for PCF (Windows)"))) then
if any(.Dependencies[]?; select(.Release.Product.Name | contains("Stemcells for PCF (Windows)"))) then
"stemcells-windows-server"
else
"stemcells"
Expand Down