]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
man: drop inadvertently added -x, make shellcheck clean
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sat, 28 Jun 2025 13:31:46 +0000 (15:31 +0200)
committerLuca Boccassi <luca.boccassi@gmail.com>
Mon, 4 Aug 2025 16:37:34 +0000 (17:37 +0100)
aecb6eaed7d39d73f296c86a882c644b18b7e634 added -x most likely for debugging,
drop it. Also, adjust quoting to make the generated scripts liked by shellcheck.

(cherry picked from commit e11041d30f7be2ea18b0ea1a95f5f7ab8c4bcae8)

man/html.in
man/man.in

index d6822c03e081aa1de436d9eab3f52712127b14dd..b083e753d0423cfbc1842f7681b6cee7138717bc 100755 (executable)
@@ -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
index a7fee984a02678d0855190c8fbaa6366fbee2f8f..35e21db05bef8154b598121d89a08039d1ba230e 100755 (executable)
@@ -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"