Skip to content

Commit 62acdd0

Browse files
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 <[email protected]>
1 parent 0c0c80e commit 62acdd0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hooks/tflint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,5 @@ done
2626

2727
for file in "${FILES[@]}"
2828
do
29-
tflint "${ARGS[@]}" "$file"
29+
tflint "${ARGS[@]}" --chdir "$(dirname "$file")" --filter "$(basename "$file")"
3030
done

0 commit comments

Comments
 (0)