From e79b65d2fe92a1122810648cb561987f0d202aa2 Mon Sep 17 00:00:00 2001 From: Andrea Brancaleoni Date: Wed, 10 Apr 2024 19:31:39 +0200 Subject: [PATCH] tfsec.sh: tfvars through find --- assets/tfsec.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/assets/tfsec.sh b/assets/tfsec.sh index 5e1b5048..f0861233 100755 --- a/assets/tfsec.sh +++ b/assets/tfsec.sh @@ -5,8 +5,8 @@ SCRIPT=$(readlink -f $0) export SCRIPTPATH=`dirname $SCRIPT` ARGS="" -if ls *.tfvars 2> /dev/null; then - for TFVARS in *.tfvars; do +if find -name '*.tfvars' 2> /dev/null; then + for TFVARS in $(find -name '*.tfvars'); do ARGS+="--tfvars-file $TFVARS " done fi