diff mbox series

[03/17] tools: quote command to prevent word splitting

Message ID 20241118150256.135432-4-cgoettsche@seltendoof.de (mailing list archive)
State New
Headers show
Series [01/17] Fix typos | expand

Commit Message

Christian Göttsche Nov. 18, 2024, 3:02 p.m. UTC
From: Christian Göttsche <cgzones@googlemail.com>

Reported by shellcheck(1).

Signed-off-by: Christian Göttsche <cgzones@googlemail.com>
---
 tools/check-syntax | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/tools/check-syntax b/tools/check-syntax
index 2115a79..d09a3dd 100755
--- a/tools/check-syntax
+++ b/tools/check-syntax
@@ -112,7 +112,7 @@  function style_fix() {
 	[[ -z "$1" ]] && return
 	[[ -z "$2" || ! -w "$2" ]] && return
 
-	tmp="$(mktemp --tmpdir=$(dirname "$2"))"
+	tmp="$(mktemp --tmpdir="$(dirname "$2")")"
 	case "$1" in
 	c|C)
 		tool_c_style "$2" > "$tmp"