aboutsummaryrefslogtreecommitdiff
path: root/runltp
diff options
context:
space:
mode:
authorPetr Vorel <pvorel@suse.cz>2018-07-23 13:21:29 +0200
committerPetr Vorel <pvorel@suse.cz>2018-07-23 13:32:44 +0200
commit685ee6170dbcec66aff04c250dc88d4b046fe588 (patch)
tree7fc0224bad5e3a7aa3565cc11f2b3b03eb98b8b3 /runltp
parent384a970b1d4ba003b643c57ac847ada38cf013a7 (diff)
runltp: Fix sending with mutt
mail address needs to be separated by '--'. + add better detection for mutt Signed-off-by: Petr Vorel <pvorel@suse.cz>
Diffstat (limited to 'runltp')
-rwxr-xr-xrunltp4
1 files changed, 2 insertions, 2 deletions
diff --git a/runltp b/runltp
index 51357fadf..24ea94fe5 100755
--- a/runltp
+++ b/runltp
@@ -944,9 +944,9 @@ main()
else
echo "Cannot Gunzip TAR File: ./$TAR_FILE_NAME"
fi
- if [ -e /usr/bin/mutt ] ; then ## This is a better mail client than others
+ if which mutt >/dev/null 2>&1; then
echo "Starting mailing reports to: $EMAIL_TO, file: ./$TAR_FILE_NAME.gz"
- mutt -a ./$TAR_FILE_NAME.gz -s "LTP Reports on $test_start_time" $EMAIL_TO < /dev/null
+ mutt -a ./$TAR_FILE_NAME.gz -s "LTP Reports on $test_start_time" -- $EMAIL_TO < /dev/null
if [ $? -eq 0 ]; then
echo "Reports Successfully mailed to: $EMAIL_TO"
else