]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
scripts/added-to-stable: use 'grep -a' for everything
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 11 Apr 2023 15:18:26 +0000 (17:18 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 11 Apr 2023 15:18:26 +0000 (17:18 +0200)
So it doesn't think that some files are binaries...

scripts/added-to-stable

index e4402db898e316cec9c344a378b6c0e5309ecc2f..eb991df5ec971a0de2ca69dc00093f6a56bf4c63 100755 (executable)
@@ -47,7 +47,7 @@ author()
         do
                # skip the Message-ID: line so we don't send email to the wrong place
                echo "$l"
-               reply=$(echo "$l" | grep -i Message-ID:)
+               reply=$(echo "$l" | grep -a -i Message-ID:)
                if [ x"$reply" != x ]
                then
                        continue
@@ -100,10 +100,10 @@ reply()
 #              exit 1
 #      fi
        echo "PATCH=$PATCH"
-#      SUBJECT=`grep "Subject:" $PATCH`
-       SUBJECT=`grep "Subject:" $PATCH | sed s/Subject\:\ //`
+#      SUBJECT=`grep -a "Subject:" $PATCH`
+       SUBJECT=`grep -a "Subject:" $PATCH | sed s/Subject\:\ //`
 #      SUBJECT=$(head -n 2 $PATCH | tail -n 1)
-       MESSAGE_ID=`grep -i "^Message-ID:" $PATCH | cut -f 2 -d ' ' | cut -f 2 -d '<' | cut -f 1 -d '>'`
+       MESSAGE_ID=`grep -a -i "^Message-ID:" $PATCH | cut -f 2 -d ' ' | cut -f 2 -d '<' | cut -f 1 -d '>'`
        author AUTHOR $1 FIRST_AUTHOR
        echo "author said $AUTHOR"
        echo "first_author said $FIRST_AUTHOR"
@@ -175,7 +175,8 @@ reply()
                -message_id="$ID" \
                "$CHARCMD" \
                | \
-       ~/bin/msmtp-enqueue.sh -a coco "$to"
+       ~/bin/msmtp-enqueue.sh "$to"
+#      ~/bin/msmtp-enqueue.sh -a coco "$to"
        #msmtp $to
 }