mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2024-11-21 15:53:47 +00:00
update changelog parser
This commit is contained in:
parent
7478b151eb
commit
8875e2a986
@ -1,20 +1,17 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
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
|
: # do nothing
|
||||||
read -r
|
done
|
||||||
done
|
|
||||||
|
|
||||||
read -r
|
while IFS= read -r line && [ -z "`echo $line | grep -e "^#\+"`" ]
|
||||||
while [ -z "`echo $REPLY | grep -e "^#\+"`" ]
|
do
|
||||||
do
|
echo "$line"
|
||||||
echo "$REPLY"
|
done
|
||||||
read -r
|
|
||||||
done
|
|
||||||
}
|
}
|
||||||
|
|
||||||
version=$1
|
version=$1
|
||||||
@ -25,5 +22,3 @@ if [ -n "$file" ]; then
|
|||||||
else
|
else
|
||||||
parse $version
|
parse $version
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user