MON-293 remove useless cd command
This commit is contained in:
parent
9cccfe2dea
commit
c81cb05668
@ -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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user