From 578620d3697317f5614b3b280a5e3424737d53e6 Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Wed, 22 Dec 2021 09:17:09 -0800 Subject: [PATCH] tools: be intentional about masking possible error in start-ci.sh Revise start-ci.sh to conform with shellcheck 0.8.0 default checks. Refs: https://www.shellcheck.net/wiki/SC2312 --- tools/actions/start-ci.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/actions/start-ci.sh b/tools/actions/start-ci.sh index 174939aa4c413b..a34f2a9496fb26 100755 --- a/tools/actions/start-ci.sh +++ b/tools/actions/start-ci.sh @@ -17,7 +17,7 @@ for pr in "$@"; do # Do we need to reset? gh pr edit "$pr" --add-label "$REQUEST_CI_FAILED_LABEL" - jq -n --arg content "
Couldn't start CI
$(cat output)
" > output.json + jq -n --arg content "
Couldn't start CI
$(cat output || true)
" > output.json gh pr comment "$pr" --body-file output.json