Revert "[TOOLS] extract-patch-data: fix unbound variable error"
This reverts commit 01202898fe.
This commit is contained in:
@@ -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)" \
|
||||
|
||||
Reference in New Issue
Block a user