Desactivation de l'envoi de mail en mode debug

This commit is contained in:
Benjamin Renard 2010-11-29 18:40:03 +01:00
parent e83c59c32f
commit b1feead289

View file

@ -87,15 +87,19 @@ then
[ $DEBUG -eq 1 ] && echo "Pas encore de cache => On envoi"
M=1
fi
if [ $M -eq 1 ]
if [ $DEBUG -eq 1 -a $M -eq 1 ]
then
echo "Mode debug : Pas d'envoi de mail"
fi
if [ $M -eq 1 -a $DEBUG -ne 1 ]
then
cat $tmp > $CACHE
if [ -n $NAME ]
then
S="[$NAME] New RoundCude release"
else
S="New RoundCude release"
fi
if [ -n $NAME ]
then
S="[$NAME] New RoundCude release"
else
S="New RoundCude release"
fi
cat $tmp | mail -s "$S : $newest" $MAIL
[ $DEBUG -eq 1 ] && echo "Mail envoyé"
fi