From 02698911fa96f5a6911de265c8c8cad57a99751d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=8D=C3=B1igo=20Huguet?= Date: Mon, 23 Dec 2024 09:49:32 +0100 Subject: [PATCH] release: fix help text The help text is read from the comments at the top of the script itself. However, to detect what lines belongs to the help text, a range was defined as: - Start: any line starting with `# ` - End: any line starting `# Run with --no-test` If any later line starts with `# ` is considered as a new matching range, and from it to the end of the file is printed too. Fix it by defining the range: - Start: line 2 - End: blank line (cherry picked from commit b1c8b5482c304841d6a4995c2fafa2df0c394861) --- contrib/fedora/rpm/release.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/fedora/rpm/release.sh b/contrib/fedora/rpm/release.sh index f8d7fd0954..3765d7e442 100755 --- a/contrib/fedora/rpm/release.sh +++ b/contrib/fedora/rpm/release.sh @@ -75,7 +75,7 @@ print_usage() { die_help() { print_usage echo - sed -e '/^# /,/# Run with --no-test/!d' -e 's/^#\($\| \)/ /' "$BASH_SOURCE" + sed -e '2,/^$/!d' -e 's/^#\($\| \)/ /' "$BASH_SOURCE" exit 0 }