This commit is contained in:
Li ZongYing
2024-05-20 22:08:37 +08:00
parent 4ef95d60c4
commit 68f158e556
6 changed files with 23 additions and 3 deletions
Executable
+20
View File
@@ -0,0 +1,20 @@
#!/bin/bash
in_changelog=false
while IFS= read -r line; do
if [[ "$line" == "## "* ]]; then
continue
fi
if [[ $in_changelog == false ]] && [[ "$line" == "### "* ]]; then
in_changelog=true
continue
fi
if [[ $in_changelog == true ]] && [[ "$line" == "### "* ]]; then
break
fi
echo "$line"
done < HISTORY.md