Browse Source

style(alerts): prettier-format alert_matrix.sh

Add the space in '2> /dev/null' that prettier-plugin-sh expects. This
was in the original #4901 code and tripped the Prettier workflow on
develop after merge (the workflow auto-formats and then can't push to
the protected branch, so the run fails).
pull/4941/head
Daniel Gibbs 2 days ago
parent
commit
ebc96e9878
Failed to extract signature
  1. 2
      lgsm/modules/alert_matrix.sh

2
lgsm/modules/alert_matrix.sh

@ -60,7 +60,7 @@ matrixsend=$(curl --connect-timeout 10 -sSL -X PUT \
"${matrixurl}")
exitcode=$?
matrixeventid="$(echo "${matrixsend}" | jq -r '.event_id // empty' 2>/dev/null)"
matrixeventid="$(echo "${matrixsend}" | jq -r '.event_id // empty' 2> /dev/null)"
if [ "${exitcode}" -eq 0 ] && [ -n "${matrixeventid}" ]; then
fn_print_ok_nl "Sending Matrix alert"
fn_script_log_pass "Sending Matrix alert"

Loading…
Cancel
Save