[hipl-commit] [trunk] Rev 3807: Avoid some shell quoting issues when constructing the notification mail subject.

  • From: Diego Biurrun <diego@xxxxxxxxxx>
  • To: hipl-commit@xxxxxxxxxxxxx
  • Date: Thu, 4 Mar 2010 20:30:03 +0200

Committer: Diego Biurrun <diego@xxxxxxxxxx>
Date: Thu Mar 04 19:29:35 2010 +0100
Revision: 3807
Revision-id: diego@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Branch nick: trunk

Log:
  Avoid some shell quoting issues when constructing the notification mail 
subject.

Modified:
  M  tools/hipl_autobuild

=== modified file 'tools/hipl_autobuild'
--- tools/hipl_autobuild        2010-03-04 17:43:28 +0000
+++ tools/hipl_autobuild        2010-03-04 18:29:35 +0000
@@ -23,8 +23,9 @@
         rm -f log.txt
         return 0
     else
+        SUBJECT="[$BRANCH_NAME] [autobuild] failing command: $@"
         test $HIPL_NOTIFICATION_EMAIL &&
-            mailx -s "[$BRANCH_NAME] [autobuild] failing command: $@" 
$HIPL_NOTIFICATION_EMAIL < log.txt
+            mailx -s "$SUBJECT" $HIPL_NOTIFICATION_EMAIL < log.txt
         cleanup 1
     fi
 }

Other related posts:

  • » [hipl-commit] [trunk] Rev 3807: Avoid some shell quoting issues when constructing the notification mail subject. - Diego Biurrun