From e11041d30f7be2ea18b0ea1a95f5f7ab8c4bcae8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Sat, 28 Jun 2025 15:31:46 +0200 Subject: [PATCH] man: drop inadvertently added -x, make shellcheck clean aecb6eaed7d39d73f296c86a882c644b18b7e634 added -x most likely for debugging, drop it. Also, adjust quoting to make the generated scripts liked by shellcheck. --- man/html.in | 3 ++- man/man.in | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/man/html.in b/man/html.in index 63ad1809ecb..32911e09818 100755 --- a/man/html.in +++ b/man/html.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 diff --git a/man/man.in b/man/man.in index b4fe39513b9..a63312f1f38 100755 --- a/man/man.in +++ b/man/man.in @@ -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"