]> git.ipfire.org Git - thirdparty/dracut-ng.git/commitdiff
fix(release): use correct arguments for head(1) and tail(1) calls
authorNeal Gompa <neal@gompa.dev>
Sun, 8 Feb 2026 20:57:09 +0000 (15:57 -0500)
committerNeal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
Sun, 8 Feb 2026 21:04:13 +0000 (16:04 -0500)
This ensures that the NEWS fragments can be produced correctly.

tools/release.sh

index 5e6a8f73ee0b670fb2afbbc0e0cc87ae6492a5ef..a01330c0e3814615d9ee9972cb360af0018216ed 100755 (executable)
@@ -34,8 +34,8 @@ make AUTHORS
 if ! type -p clog &> /dev/null; then
     cargo install clog-cli --version 0.9.3
 fi
-head -2 NEWS.md > NEWS_header.md
-tail +2 NEWS.md > NEWS_body.md
+head --lines=-2 NEWS.md > NEWS_header.md
+tail --lines=+2 NEWS.md > NEWS_body.md
 printf "dracut-ng-%s\n=============\n" "$NEW_VERSION" > NEWS_header_new.md
 
 # Append the list to the section in `NEWS.md`