From da25ebe002aa37af3b33cbc14711c3f350606690 Mon Sep 17 00:00:00 2001 From: Anthony Lucillo Date: Mon, 4 Feb 2019 10:09:18 -0500 Subject: [PATCH] Quotation change as requested. --- assets/check | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/assets/check b/assets/check index b8da6df..1d3e2ef 100755 --- a/assets/check +++ b/assets/check @@ -85,10 +85,10 @@ elif [[ "$bitbucket_type" == "cloud" ]]; then fi # take the list of PRs | filter out containing "wip" in title | sort by update-date of commits | remove the date | pick latest PR, wrap as array for concourse - jq -n "[ $prs - | map(select(if .title | test(\"wip\"; \"i\") then false else true end)) + jq --argjson prlist "$(jq -n "$prs")" -n '[ $prlist + | map(select(if .title | test("wip"; "i") then false else true end)) | sort_by(.updated_at) | map(del(.updated_at)) - | .[-1] ]" >&3 + | .[-1] ]' >&3 fi