]> git.ozlabs.org Git - next-scripts/blobdiff - message_helper
send_email: allow multiple cc's and use that in message_helper
[next-scripts] / message_helper
index 78584d4dedc4fc726da9f4d80c4690aeca2c4792..517fbe901f650479a014a260300b55d738bbfecc 100755 (executable)
@@ -20,7 +20,8 @@ if [ "$1" = '-c' ]; then
         shift 2
 fi
 
-cc='Linux Next Mailing List <linux-next@vger.kernel.org>, Linux Kernel Mailing List <linux-kernel@vger.kernel.org>'
+cc=( 'Linux Next Mailing List <linux-next@vger.kernel.org>'
+       'Linux Kernel Mailing List <linux-kernel@vger.kernel.org>' )
 
 if [ -z "$branch" ]; then
        branch=$(grep '^Merging ' "$log" | tail -n 1 |
@@ -36,6 +37,6 @@ fi
 filter="$filter | fmt -s"
 
 { printf 'Hi all,\n\n'; eval "$filter"; } |
-       "$bin_dir"/send_email "linux-next: $subject" "$contact" "$cc"
+       "$bin_dir"/send_email "linux-next: $subject" "$contact" "${cc[@]}"
 
 exit 0