Revert "[TOOLS] extract-patch-data: fix unbound variable error"

This reverts commit 01202898fe.
This commit is contained in:
Carmelo Messina
2024-06-15 09:36:44 +02:00
parent 01202898fe
commit e65dfa2f09
+7 -4
View File
@@ -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+="<br>"
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**" \
"<br><sub><nobr>$DATE</nobr>" \
"<br>File: [$FILENAME](/build/patches/$FILENAME)" \