]> git.ipfire.org Git - thirdparty/dracut-ng.git/commitdiff
fix(release): only install clog-cli if it isn't already installed
authorNeal Gompa <neal@gompa.dev>
Sun, 8 Feb 2026 20:34:20 +0000 (15:34 -0500)
committerNeal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
Sun, 8 Feb 2026 20:39:46 +0000 (15:39 -0500)
That way, it does not uselessly run when it is already present.

tools/release.sh

index 5f4812ca619a19cd58c9c0d6942e12a35fbf3a01..5e6a8f73ee0b670fb2afbbc0e0cc87ae6492a5ef 100755 (executable)
@@ -31,7 +31,9 @@ cat _CONTRIBUTORS >> CONTRIBUTORS.md
 make AUTHORS
 
 # Update the contributors list in NEWS.md
-cargo install clog-cli --version 0.9.3
+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
 printf "dracut-ng-%s\n=============\n" "$NEW_VERSION" > NEWS_header_new.md