MON-293 remove useless cd command

This commit is contained in:
Quentin Manfroi 2018-08-27 13:44:33 +02:00
parent 9cccfe2dea
commit c81cb05668

View File

@ -5,11 +5,9 @@ source "$(dirname $0)/utils.sh"
goto_root goto_root
for path in $(find "$(get_scope $1)" -path ./testing -prune -o -path ./incubator -prune -o -name 'inputs.tf' -print); do for path in $(find "$(get_scope $1)" -path ./testing -prune -o -path ./incubator -prune -o -name 'inputs.tf' -print); do
cd $(dirname ${path}) dir=$(dirname ${path})
echo $path terraform init ${dir}
terraform init terraform validate --check-variables=false ${dir}
terraform validate --check-variables=false
cd -
done done
terraform fmt terraform fmt