Don't end the mail command with two hyphens

Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
This commit is contained in:
Patrick Uiterwijk 2016-07-01 14:42:15 +00:00
parent 19bf5c056c
commit 8e53858861

View file

@ -33,11 +33,11 @@ RESULT=$?
if [ "$RESULT" -eq "1" ]
then
mail -s "Virus found! on $(hostname)" $MAILTO -- < $LOGFILE
mail -s "Virus found! on $(hostname)" $MAILTO < $LOGFILE
fi
if [ "$RESULT" -eq "2" ]
then
mail -s "Virus scanning error on $(hostname)" $MAILTO -- < $LOGFILE
mail -s "Virus scanning error on $(hostname)" $MAILTO < $LOGFILE
fi