1
0
mirror of https://github.com/InsanusMokrassar/TelegramBotAPI.git synced 2024-11-24 11:08:43 +00:00

update changelog parser

This commit is contained in:
InsanusMokrassar 2020-10-04 17:43:25 +06:00
parent 7478b151eb
commit 8875e2a986

View File

@ -3,17 +3,14 @@
function parse() { function parse() {
version=$1 version=$1
read -r while IFS= read -r line && [ -z "`echo $line | grep -e "^#\+ $version"`" ]
while [ -z "`echo $REPLY | grep -e "^#\+ $version"`" ]
do do
read -r : # do nothing
done done
read -r while IFS= read -r line && [ -z "`echo $line | grep -e "^#\+"`" ]
while [ -z "`echo $REPLY | grep -e "^#\+"`" ]
do do
echo "$REPLY" echo "$line"
read -r
done done
} }
@ -25,5 +22,3 @@ if [ -n "$file" ]; then
else else
parse $version parse $version
fi fi