mirror of
https://github.com/numtide/treefmt.git
synced 2024-09-11 17:07:44 +03:00
treefmt.toml: add warning for sh -c
This commit is contained in:
parent
3824820f08
commit
d19198044e
@ -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"]
|
||||
|
Loading…
Reference in New Issue
Block a user