diff options
author | Petr Vorel <pvorel@suse.cz> | 2018-07-23 13:21:29 +0200 |
---|---|---|
committer | Petr Vorel <pvorel@suse.cz> | 2018-07-23 13:32:44 +0200 |
commit | 685ee6170dbcec66aff04c250dc88d4b046fe588 (patch) | |
tree | 7fc0224bad5e3a7aa3565cc11f2b3b03eb98b8b3 /runltp | |
parent | 384a970b1d4ba003b643c57ac847ada38cf013a7 (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-x | runltp | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |