From b0efa1d1d2d48d890277cd63ea7c3410c0999cb5 Mon Sep 17 00:00:00 2001 From: Philippe Caseiro Date: Mon, 22 Mar 2021 20:37:09 +0100 Subject: [PATCH] Fix VAR_FILE --- fabrica | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -