Skip to content

Commit e6ffbcd

Browse files
committed
Revert "Scan only one directory to improve performance with terrascan"
This reverts commit 677912b.
1 parent 677912b commit e6ffbcd

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

terrascan.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@ terrascan_() {
1414

1515
# consume modified files passed from pre-commit so that
1616
# terrascan runs against only those relevant directories
17-
# shellcheck disable=SC2128 # scan the first directory of the FILES array
18-
for file_with_path in $files; do
17+
for file_with_path in "${files[@]}"; do
1918
file_with_path="${file_with_path// /__REPLACED__SPACE__}"
2019
paths[index]=$(dirname "$file_with_path")
2120
index=$((index + 1))

0 commit comments

Comments
 (0)