Don't end the mail command with two hyphens
Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
This commit is contained in:
parent
19bf5c056c
commit
8e53858861
1 changed files with 2 additions and 2 deletions
|
@ -33,11 +33,11 @@ RESULT=$?
|
||||||
|
|
||||||
if [ "$RESULT" -eq "1" ]
|
if [ "$RESULT" -eq "1" ]
|
||||||
then
|
then
|
||||||
mail -s "Virus found! on $(hostname)" $MAILTO -- < $LOGFILE
|
mail -s "Virus found! on $(hostname)" $MAILTO < $LOGFILE
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$RESULT" -eq "2" ]
|
if [ "$RESULT" -eq "2" ]
|
||||||
then
|
then
|
||||||
mail -s "Virus scanning error on $(hostname)" $MAILTO -- < $LOGFILE
|
mail -s "Virus scanning error on $(hostname)" $MAILTO < $LOGFILE
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue