From 0741c52808799c427ad0acb9cfea068de76610c2 Mon Sep 17 00:00:00 2001 From: Colwyn Fritze-Moor Date: Tue, 15 Feb 2022 10:06:17 -0800 Subject: [PATCH] fix: cd to terraform directory before running get --- lib/functions/worker.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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=$(