From: Vincent Le Gallic Date: Sun, 9 Nov 2014 19:35:50 +0000 (+0100) Subject: Merge branch 'master' of ssh://cerebro.crans.org/git/myscripts X-Git-Url: http://gitweb.pimeys.fr/?a=commitdiff_plain;h=2080de96607fd8b7a692b360ecf0b67862228480;hp=e06766c11f294c4c3db3d90e855bc313e6165cee;p=scripts-20-100.git Merge branch 'master' of ssh://cerebro.crans.org/git/myscripts --- diff --git a/mails/watch_ml_pot-vieux.sh b/mails/watch_ml_pot-vieux.sh new file mode 100755 index 0000000..882fb0b --- /dev/null +++ b/mails/watch_ml_pot-vieux.sh @@ -0,0 +1,12 @@ +#!/bin/bash + +# Vérifie que la ML pot-vieux-orga est incluse dans pot-vieux +# et envoie un mail à pot.vieux@crans.org si ce n'est pas le cas + +cd ~/scripts/mails/ +result=$(./ml_in_ml.sh pot-vieux-orga pot-vieux) + +if test -n "${result}" +then + echo -e "To: pot.vieux@crans.org\nSubject: ML pot-vieux-orga non incluse dans pot-vieux\n${result}" | sendmail -t +fi