Desactivation de l'envoi de mail en mode debug
This commit is contained in:
parent
e83c59c32f
commit
b1feead289
1 changed files with 11 additions and 7 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue