Skip to content

Commit

Permalink
Revert "Scan only one directory to improve performance with terrascan"
Browse files Browse the repository at this point in the history
This reverts commit 677912b.
  • Loading branch information
MaxymVlasov committed Dec 22, 2021
1 parent 677912b commit e6ffbcd
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions terrascan.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@ terrascan_() {

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

0 comments on commit e6ffbcd

Please sign in to comment.