From e65dfa2f09b8b0b02882cc1b7377a55a88e7835b Mon Sep 17 00:00:00 2001 From: Carmelo Messina Date: Sat, 15 Jun 2024 09:36:44 +0200 Subject: [PATCH] Revert "[TOOLS] extract-patch-data: fix unbound variable error" This reverts commit 01202898fefcc75671f7efddbe854c5b7a66b159. --- tools/extract-patch-data.sh | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/tools/extract-patch-data.sh b/tools/extract-patch-data.sh index 25725fcb..d14eb118 100644 --- a/tools/extract-patch-data.sh +++ b/tools/extract-patch-data.sh @@ -2,9 +2,6 @@ set -euo pipefail -MESSAGE="" -LICENSE="" - while read -r current_line; do if [[ $current_line =~ ^Filename:* ]]; then FILENAME=${current_line:9} @@ -28,7 +25,7 @@ while read -r current_line; do break elif [ -n "$current_line" ]; then - if [ -n "$MESSAGE" ]; then + if [ -n "$MESSAGE" ]; then MESSAGE+="
" fi MESSAGE+=$current_line @@ -36,6 +33,12 @@ while read -r current_line; do fi done +# echo FROM: $FROM +# echo SUBJECT: $SUBJECT +# echo DATE: $DATE +# echo LICENSE: $LICENSE +# echo -e MESSAGE: $MESSAGE + echo "|**$SUBJECT**" \ "
$DATE" \ "
File: [$FILENAME](/build/patches/$FILENAME)" \