diff --git a/lib/functions/worker.sh b/lib/functions/worker.sh index 061b88a7..3f36d702 100755 --- a/lib/functions/worker.sh +++ b/lib/functions/worker.sh @@ -285,7 +285,10 @@ function LintCodebase() { TFLINT_SEEN_DIRS[${DIR_NAME}]='false' fi - terraform get 2>&1 + ( + cd "${DIR_NAME}" || exit + terraform get 2>&1 + ) fi LINT_CMD=$(