fix : correctifs

This commit is contained in:
AkiNoKure
2026-03-13 08:55:11 +01:00
parent 210594b008
commit a1ace94094
9 changed files with 687 additions and 177 deletions

View File

@@ -114,7 +114,6 @@ add_summary_line() {
#######################################
# Envoi du message Discord récapitulatif
#######################################
send_discord_summary() {
[[ -z "${DISCORD_WEBHOOK_URL:-}" ]] && return 0
@@ -126,17 +125,23 @@ send_discord_summary() {
ping_prefix="${DISCORD_PING} "
fi
local msg="**${ping_prefix}CHECK APP ${ENV_NAME} ${header_icon}**"
local msg
msg="$(printf '**%sCHECK APP %s %s**\n' \
"$ping_prefix" \
"$ENV_NAME" \
"$header_icon"
)"
local line
for line in "${SUMMARY_LINES[@]}"; do
msg+=$'\n'"${line}"
msg+="$(printf '%s\n' "$line")"
done
local payload
payload="$(jq -n --arg content "$msg" '{content: $content}')"
curl -fsS -H "Content-Type: application/json" \
curl -fsS \
-H "Content-Type: application/json" \
-d "$payload" \
"$DISCORD_WEBHOOK_URL" >/dev/null || true
}