From 0f852ce01c39d1dfa65acb828e68cf68da4bed90 Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Wed, 22 Dec 2021 09:17:09 -0800 Subject: [PATCH] tools: do not mask possible error from command 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 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/actions/start-ci.sh b/tools/actions/start-ci.sh index 174939aa4c413b..0b4ab4f6d3754e 100755 --- a/tools/actions/start-ci.sh +++ b/tools/actions/start-ci.sh @@ -17,7 +17,8 @@ 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 + details="$(cat output)" + jq -n --arg content "
Couldn't start CI
$details
" > output.json gh pr comment "$pr" --body-file output.json