Skip to content

Commit 0f852ce

Browse files
committed
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
1 parent 5016181 commit 0f852ce

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tools/actions/start-ci.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ for pr in "$@"; do
1717
# Do we need to reset?
1818
gh pr edit "$pr" --add-label "$REQUEST_CI_FAILED_LABEL"
1919

20-
jq -n --arg content "<details><summary>Couldn't start CI</summary><pre>$(cat output)</pre></details>" > output.json
20+
details="$(cat output)"
21+
jq -n --arg content "<details><summary>Couldn't start CI</summary><pre>$details</pre></details>" > output.json
2122

2223
gh pr comment "$pr" --body-file output.json
2324

0 commit comments

Comments
 (0)