We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5341f38 commit 0c0c80eCopy full SHA for 0c0c80e
1 file changed
hooks/tflint.sh
@@ -10,6 +10,21 @@ export PATH=$PATH:/usr/local/bin
10
# Install any plugins defined in .tflint.hcl
11
tflint --init
12
13
-for file in "$@"; do
14
- tflint $file
+
+declare -a FILES
15
+declare -a ARGS
16
+while [[ $# -gt 0 ]]
17
+do
18
+ case "$1" in
19
+ -*) ARGS+=("$1")
20
+ ;;
21
+ *) FILES+=("$1")
22
23
+ esac
24
+ shift
25
+done
26
27
+for file in "${FILES[@]}"
28
29
+ tflint "${ARGS[@]}" "$file"
30
done
0 commit comments