Skip to content
Snippets Groups Projects
Commit cc6e8dea authored by RIETTE Sébastien's avatar RIETTE Sébastien
Browse files

S. Riette 14 Dec 2023: new ref version for testprogs

Change reference version for NEC
Use of sendmail for aurora01
parent 25bf25f2
No related branches found
No related tags found
No related merge requests found
{
"testing": {
"ice_adjust":"19ee594",
"rain_ice":"19ee594",
"rain_ice_old":"8046717",
"turb":"19ee594",
"shallow":"19ee594"
"ice_adjust":"25bf25f",
"rain_ice":"25bf25f",
"rain_ice_old":"25bf25f",
"turb":"25bf25f",
"shallow":"25bf25f"
}
}
......@@ -177,9 +177,16 @@ function get_cases {
function send_mail {
message="$1"
if [ "$MAIL" != "" ]; then
mail -s "$context" "$MAIL" <<EOF
if command -v mail; then
mail -s "$context" "$MAIL" <<EOF
$(echo -e ${message})
EOF
else
sendmail "$MAIL" <<EOF
Subject: $context
$(echo -e ${message})
EOF
fi
fi
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment