fix: cd to terraform directory before running get

This commit is contained in:
Colwyn Fritze-Moor 2022-02-15 10:06:17 -08:00 committed by Brett Logan
parent 366889a844
commit 0741c52808

View file

@ -285,7 +285,10 @@ function LintCodebase() {
TFLINT_SEEN_DIRS[${DIR_NAME}]='false' TFLINT_SEEN_DIRS[${DIR_NAME}]='false'
fi fi
terraform get 2>&1 (
cd "${DIR_NAME}" || exit
terraform get 2>&1
)
fi fi
LINT_CMD=$( LINT_CMD=$(