From d19198044e77626bd7f9a00a8ceac4282844477a Mon Sep 17 00:00:00 2001 From: zimbatm Date: Fri, 20 May 2022 16:18:55 +0200 Subject: [PATCH] treefmt.toml: add warning for sh -c --- treefmt.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/treefmt.toml b/treefmt.toml index e0f5bd4..103fde8 100644 --- a/treefmt.toml +++ b/treefmt.toml @@ -70,7 +70,7 @@ shellcheck "$@" # Then format them shfmt -i 2 -s -w "$@" """, - "--", + "--", # bash swallows the second argument when using -c ] includes = ["*.sh"] @@ -85,6 +85,6 @@ for f in "$@"; do terraform fmt "$f" done """, - "--", + "--", # bash swallows the second argument when using -c ] includes = ["*.tf"]