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,7 +87,11 @@ then
[ $DEBUG -eq 1 ] && echo "Pas encore de cache => On envoi" [ $DEBUG -eq 1 ] && echo "Pas encore de cache => On envoi"
M=1 M=1
fi 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 then
cat $tmp > $CACHE cat $tmp > $CACHE
if [ -n $NAME ] if [ -n $NAME ]