1
0
mirror of https://github.com/systemd/systemd synced 2025-10-06 00:13:24 +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:
Zbigniew Jędrzejewski-Szmek
2025-06-28 15:31:46 +02:00
parent 0a580dee6b
commit e11041d30f
2 changed files with 4 additions and 3 deletions

View File

@@ -1,5 +1,6 @@
#!/bin/sh #!/bin/sh
# SPDX-License-Identifier: LGPL-2.1-or-later # SPDX-License-Identifier: LGPL-2.1-or-later
set -e set -e
if [ -z "$1" ]; then if [ -z "$1" ]; then
@@ -22,7 +23,7 @@ fi
if [ -n "$redirect" ]; then if [ -n "$redirect" ]; then
ninja -C @BUILD_ROOT@ "man/$redirect" ninja -C @BUILD_ROOT@ "man/$redirect"
fullname=@BUILD_ROOT@/man/"$redirect" fullname=@BUILD_ROOT@"/man/$redirect"
fi fi
set -x set -x

View File

@@ -1,7 +1,7 @@
#!/bin/sh #!/bin/sh
# SPDX-License-Identifier: LGPL-2.1-or-later # SPDX-License-Identifier: LGPL-2.1-or-later
set -ex set -e
if [ -z "$1" ]; then if [ -z "$1" ]; then
echo "Use: $0 page-name (with no section suffix)" 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 if [ -n "$redirect" ]; then
ninja -C @BUILD_ROOT@ "man/$redirect" ninja -C @BUILD_ROOT@ "man/$redirect"
fullname=@BUILD_ROOT@/man/"$redirect" fullname=@BUILD_ROOT@"/man/$redirect"
fi fi
exec man "$fullname" exec man "$fullname"