From e6ffbcd3def77c7caa471d008daefa13f9095127 Mon Sep 17 00:00:00 2001 From: MaxymVlasov Date: Wed, 22 Dec 2021 20:04:19 +0200 Subject: [PATCH] Revert "Scan only one directory to improve performance with terrascan" This reverts commit 677912bfd5aa16792c00cab160982fa472eb06d0. --- terrascan.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/terrascan.sh b/terrascan.sh index 199538b40..bd66a73de 100755 --- a/terrascan.sh +++ b/terrascan.sh @@ -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))