]> git.immae.eu Git - perso/Immae/Config/Nix.git/blame - flakes/private/monitoring/send_mails
Squash changes containing private information
[perso/Immae/Config/Nix.git] / flakes / private / monitoring / send_mails
CommitLineData
71a2425e
IB
1#!/usr/bin/env bash
2
3CHECK_DIR=$1
4shift
5RETURN_PATH=$1
6shift
7
8for mail in "$@"; do
9 echo "Test Mail" | MAILRC=/dev/null mail -n -r "$RETURN_PATH" -s "TestMailImmae " "$mail"
10done
11
12if [ -d "$CHECK_DIR" ]; then
13 cd $CHECK_DIR
14 stat -c '%n;%y' *
15fi