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