From 62acdd0e6aaf398eb04af4a6fcd97a9f3f538668 Mon Sep 17 00:00:00 2001 From: Jeremy Yoder Date: Fri, 12 May 2023 17:01:03 -0400 Subject: [PATCH] tflint has deprecated the 'tflint FILE/DIR' syntax (#95) * tflint has deprecated the 'tflint FILE/DIR' syntax * Quote parameters to dirname/basename --------- Co-authored-by: Jeremy Yoder <45078974+jyoder-deloitte@users.noreply.github.com> --- hooks/tflint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hooks/tflint.sh b/hooks/tflint.sh index 888c7a34..13503817 100755 --- a/hooks/tflint.sh +++ b/hooks/tflint.sh @@ -26,5 +26,5 @@ done for file in "${FILES[@]}" do - tflint "${ARGS[@]}" "$file" + tflint "${ARGS[@]}" --chdir "$(dirname "$file")" --filter "$(basename "$file")" done