mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-07 10:48:12 +02:00
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 commitb1c8b5482c) (cherry picked from commit02698911fa)
This commit is contained in:
parent
6fe5ffb7e4
commit
07e55db974
1 changed files with 1 additions and 1 deletions
|
|
@ -75,7 +75,7 @@ print_usage() {
|
||||||
die_help() {
|
die_help() {
|
||||||
print_usage
|
print_usage
|
||||||
echo
|
echo
|
||||||
sed -e '/^# /,/# Run with --no-test/!d' -e 's/^#\($\| \)/ /' "$BASH_SOURCE"
|
sed -e '2,/^$/!d' -e 's/^#\($\| \)/ /' "$BASH_SOURCE"
|
||||||
exit 0
|
exit 0
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue