fix changelog retriever file

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

21
changelog_info_retriever Normal file → Executable file
View File

@ -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