Skip to content

Commit

Permalink
tfsec.sh: tfvars through find
Browse files Browse the repository at this point in the history
  • Loading branch information
thypon committed Apr 10, 2024
1 parent 14eaea3 commit e79b65d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions assets/tfsec.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e79b65d

Please sign in to comment.