Skip to content

Commit

Permalink
ensure script can find changelog independent of where it's run
Browse files Browse the repository at this point in the history
  • Loading branch information
rfvgyhn committed Nov 2, 2021
1 parent a5a78b3 commit 0b85f30
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ci/latest-changes.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#!/bin/bash
set -e
changelog="$(dirname "$(readlink -f "$0")")/../CHANGELOG.md"

tail -n +2 ../CHANGELOG.md | # Remove header
tail -n +2 "$changelog" | # Remove header
sed '/./,$!d' | # Remove whitespace lines
sed '1d' | # Remove release heading
sed '/./,$!d' | # Remove whitespace lines
Expand Down

0 comments on commit 0b85f30

Please sign in to comment.