From 64a89568925c3f62b7ecdcf60b612001d2749eb1 Mon Sep 17 00:00:00 2001 From: pseudometa <73286100+chrisgrieser@users.noreply.github.com> Date: Fri, 13 Oct 2023 17:39:29 +0200 Subject: fix(shellcheck): support filenames with spaces (#135) --- lua/conform/formatters/shellcheck.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lua/conform/formatters/shellcheck.lua') diff --git a/lua/conform/formatters/shellcheck.lua b/lua/conform/formatters/shellcheck.lua index 3ceb7a5..f478d52 100644 --- a/lua/conform/formatters/shellcheck.lua +++ b/lua/conform/formatters/shellcheck.lua @@ -5,6 +5,6 @@ return { description = "A static analysis tool for shell scripts.", }, command = "shellcheck", - args = "$FILENAME --format=diff | patch -p1 $FILENAME", + args = "'$FILENAME' --format=diff | patch -p1 '$FILENAME'", stdin = false, } -- cgit v1.2.3-70-g09d2