fix changelog retriever file

This commit is contained in:
InsanusMokrassar 2020-10-03 15:46:18 +06:00
parent 5f9cb25e18
commit 9824bf4297

11
changelog_info_retriever Normal file → Executable file
View File

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