From: Greg Kroah-Hartman Date: Tue, 11 Apr 2023 15:18:26 +0000 (+0200) Subject: scripts/added-to-stable: use 'grep -a' for everything X-Git-Tag: v5.15.107~11 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=514652b10fc038380f9bd1291154a637cb17f47a;p=thirdparty%2Fkernel%2Fstable-queue.git scripts/added-to-stable: use 'grep -a' for everything So it doesn't think that some files are binaries... --- diff --git a/scripts/added-to-stable b/scripts/added-to-stable index e4402db898e..eb991df5ec9 100755 --- a/scripts/added-to-stable +++ b/scripts/added-to-stable @@ -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 }