mirror of
https://github.com/systemd/systemd
synced 2025-10-05 16:03:15 +02:00
man: drop inadvertently added -x, make shellcheck clean
aecb6eaed7
added -x most likely for debugging,
drop it. Also, adjust quoting to make the generated scripts liked by shellcheck.
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
#!/bin/sh
|
||||
# SPDX-License-Identifier: LGPL-2.1-or-later
|
||||
|
||||
set -e
|
||||
|
||||
if [ -z "$1" ]; then
|
||||
@@ -22,7 +23,7 @@ fi
|
||||
if [ -n "$redirect" ]; then
|
||||
ninja -C @BUILD_ROOT@ "man/$redirect"
|
||||
|
||||
fullname=@BUILD_ROOT@/man/"$redirect"
|
||||
fullname=@BUILD_ROOT@"/man/$redirect"
|
||||
fi
|
||||
|
||||
set -x
|
||||
|
@@ -1,7 +1,7 @@
|
||||
#!/bin/sh
|
||||
# SPDX-License-Identifier: LGPL-2.1-or-later
|
||||
|
||||
set -ex
|
||||
set -e
|
||||
|
||||
if [ -z "$1" ]; then
|
||||
echo "Use: $0 page-name (with no section suffix)"
|
||||
@@ -24,7 +24,7 @@ redirect="$(sed -n -r '1 s|^\.so man[0-9]/(.*)|\1|p' "$fullname")"
|
||||
if [ -n "$redirect" ]; then
|
||||
ninja -C @BUILD_ROOT@ "man/$redirect"
|
||||
|
||||
fullname=@BUILD_ROOT@/man/"$redirect"
|
||||
fullname=@BUILD_ROOT@"/man/$redirect"
|
||||
fi
|
||||
|
||||
exec man "$fullname"
|
||||
|
Reference in New Issue
Block a user