diff options
author | Jean Delvare <jdelvare@suse.de> | 2009-06-10 15:03:13 +0200 |
---|---|---|
committer | Andreas Gruenbacher <agruen@suse.de> | 2009-06-17 13:22:25 +0200 |
commit | 62e00228c780470b9cbdb9aca82a4954922967c3 (patch) | |
tree | dccce68543c3475d831a04c9c89edc96d0264655 | |
parent | fa1c4d3b976df7b619219205af9563ecf29424d2 (diff) | |
download | quilt-62e00228c780470b9cbdb9aca82a4954922967c3.tar.gz |
Don't use the =~ construct
Older versions of bash do not support the =~ construct, so stop
using it.
-rw-r--r-- | quilt/mail.in | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/quilt/mail.in b/quilt/mail.in index 08d8d72..1bf5832 100644 --- a/quilt/mail.in +++ b/quilt/mail.in @@ -101,10 +101,14 @@ references_header() { then in_reply_to=$(formail -x In-Reply-To: < "$message") in_reply_to=${in_reply_to# } - if [ -n "$in_reply_to" ] && - ! [[ "$in_reply_to" =~ "@.*@" ]] + if [ -n "$in_reply_to" ] then - references=$in_reply_to + case "$in_reply_to" in + *@*@*) + ;; + *) references=$in_reply_to + ;; + esac fi fi if [ -z "$references" ] |