diff options
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/send-pull-request | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/scripts/send-pull-request b/scripts/send-pull-request index be130096c1..8d51ce2ec1 100755 --- a/scripts/send-pull-request +++ b/scripts/send-pull-request | |||
| @@ -108,15 +108,18 @@ fi | |||
| 108 | 108 | ||
| 109 | 109 | ||
| 110 | # Verify the cover letter is complete and free of tokens | 110 | # Verify the cover letter is complete and free of tokens |
| 111 | CL="$PDIR/0000-cover-letter.patch" | 111 | if [ -e $PDIR/0000-cover-letter.patch ]; then |
| 112 | for TOKEN in SUBJECT BLURB; do | 112 | CL="$PDIR/0000-cover-letter.patch" |
| 113 | grep -q "*** $TOKEN HERE ***" "$CL" | 113 | for TOKEN in SUBJECT BLURB; do |
| 114 | if [ $? -eq 0 ]; then | 114 | grep -q "*** $TOKEN HERE ***" "$CL" |
| 115 | echo "ERROR: Please edit $CL and try again (Look for '*** $TOKEN HERE ***')." | 115 | if [ $? -eq 0 ]; then |
| 116 | exit 1 | 116 | echo "ERROR: Please edit $CL and try again (Look for '*** $TOKEN HERE ***')." |
| 117 | fi | 117 | exit 1 |
| 118 | done | 118 | fi |
| 119 | 119 | done | |
| 120 | else | ||
| 121 | echo "WARNING: No cover letter will be send." | ||
| 122 | fi | ||
| 120 | 123 | ||
| 121 | # Harvest emails from the generated patches and populate AUTO_CC. | 124 | # Harvest emails from the generated patches and populate AUTO_CC. |
| 122 | if [ $AUTO_CL -eq 1 ]; then | 125 | if [ $AUTO_CL -eq 1 ]; then |
