Fix VAR_FILE

This commit is contained in:
Philippe Caseiro 2021-03-22 20:37:09 +01:00
parent 252064322c
commit b0efa1d1d2
1 changed files with 3 additions and 1 deletions

View File

@ -2,7 +2,6 @@
WORKDIR="./terraform" WORKDIR="./terraform"
TERRA="terraform" TERRA="terraform"
VAR_FILES=$(ls ${WORKDIR}/*.tfvars)
PACKER_ROOT="./packer" PACKER_ROOT="./packer"
# FIXME # FIXME
@ -23,11 +22,14 @@ function trun()
echo "--> Git pull needed !" echo "--> Git pull needed !"
return 1 return 1
fi fi
VAR_FILES=$(ls *.tfvars)
OPTS="" OPTS=""
for fl in ${VAR_FILES} for fl in ${VAR_FILES}
do do
OPTS="-var-files ${fl} " OPTS="-var-files ${fl} "
done done
${TERRA} ${1} ${OPTS} ${TERRA} ${1} ${OPTS}
res=${?} res=${?}
cd - cd -