diff --git a/.prettierignore b/.prettierignore index 7b065e422..ed5b8552f 100644 --- a/.prettierignore +++ b/.prettierignore @@ -1,3 +1,7 @@ # Prettier auto-commit runs with GITHUB_TOKEN (GitHub App). # GitHub blocks that token from creating/updating anything under .github/workflows. .github/workflows/** + +# Machine-generated by npm; its format is owned by npm, not Prettier. +# Prettier reformatting it fights npm and makes the auto-commit run fail. +package-lock.json diff --git a/lgsm/modules/alert_matrix.sh b/lgsm/modules/alert_matrix.sh index ab3f6e230..34d226f1f 100755 --- a/lgsm/modules/alert_matrix.sh +++ b/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"