]> git.ipfire.org Git - thirdparty/HylaFAX.git/commitdiff
SCO's /bin/sh doesn't accept unquoted words begining with ^ characters.
authorAidan Van Dyk <aidan@ifax.com>
Wed, 4 Oct 2006 22:11:27 +0000 (22:11 +0000)
committerAidan Van Dyk <aidan@ifax.com>
Wed, 4 Oct 2006 22:11:27 +0000 (22:11 +0000)
Quote the grep expressions, as in other uses.

util/common-functions.sh.in

index 890c10b19aff24d1755ad773b463a17b9ec57624..1990b81f468bbb93f2bb22744a83bfed69f32f47 100644 (file)
@@ -283,7 +283,7 @@ CreateMailMessage ()
     # Excluding any "Content-" lines, which need to stay with
     # the actual template content
     $SED -n -e '/^$/q;p' $1                    \
-       | $GREP -v ^Content             \
+       | $GREP -v "^Content"           \
        | template
 
     # If there are attachments, we are a multipart/mixed
@@ -296,12 +296,12 @@ CreateMailMessage ()
 
     # Now print the Content-* headers for the template
     $SED -e '/^$/Q' $1                 \
-       | $GREP ^Content                \
+       | $GREP "^Content"              \
        | template
 
     echo ""
     body_encoding=`$SED -n -e '/^$/q;p' $1             \
-       | $GREP -i ^Content-Transfer-Encoding   \
+       | $GREP -i "^Content-Transfer-Encoding" \
        | template                              \
        | $SED -e 's/^[^ ]*: *//'`;
     test "$body_encoding" || body_encoding=7bit;