From: Otavio Salvador Date: Wed, 7 Dec 2011 21:19:52 +0000 (+0000) Subject: scripts/send-pull-request: allow sending of patches without a cover letter X-Git-Tag: 2015-4~12459 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=326ef69d1296cd35a86d1eaee0741e6fc956af52;p=openembedded-core.git scripts/send-pull-request: allow sending of patches without a cover letter Signed-off-by: Otavio Salvador --- 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 # Verify the cover letter is complete and free of tokens -CL="$PDIR/0000-cover-letter.patch" -for TOKEN in SUBJECT BLURB; do - grep -q "*** $TOKEN HERE ***" "$CL" - if [ $? -eq 0 ]; then - echo "ERROR: Please edit $CL and try again (Look for '*** $TOKEN HERE ***')." - exit 1 - fi -done - +if [ -e $PDIR/0000-cover-letter.patch ]; then + CL="$PDIR/0000-cover-letter.patch" + for TOKEN in SUBJECT BLURB; do + grep -q "*** $TOKEN HERE ***" "$CL" + if [ $? -eq 0 ]; then + echo "ERROR: Please edit $CL and try again (Look for '*** $TOKEN HERE ***')." + exit 1 + fi + done +else + echo "WARNING: No cover letter will be send." +fi # Harvest emails from the generated patches and populate AUTO_CC. if [ $AUTO_CL -eq 1 ]; then