From: Neal Gompa Date: Sun, 8 Feb 2026 20:57:09 +0000 (-0500) Subject: fix(release): use correct arguments for head(1) and tail(1) calls X-Git-Tag: 110~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=77c0d5774b02ee3b5972899766fa1fe74d645fd3;p=thirdparty%2Fdracut-ng.git fix(release): use correct arguments for head(1) and tail(1) calls This ensures that the NEWS fragments can be produced correctly. --- diff --git a/tools/release.sh b/tools/release.sh index 5e6a8f73e..a01330c0e 100755 --- a/tools/release.sh +++ b/tools/release.sh @@ -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`