From 0ae0ba6a40b26f2e95ed517d03cc6daf78e26a5b Mon Sep 17 00:00:00 2001 From: Isa Aguilar Date: Thu, 26 Oct 2023 13:05:17 -0400 Subject: [PATCH] reponame fix1 --- pkg/controllers/scripts/setup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/controllers/scripts/setup.sh b/pkg/controllers/scripts/setup.sh index c9412ac..f7d88d7 100644 --- a/pkg/controllers/scripts/setup.sh +++ b/pkg/controllers/scripts/setup.sh @@ -69,7 +69,7 @@ if [[ ! -s "$TFO_MAIN_MODULE_ADDONS/inline-module.tf" ]]; then if [ $exit_code -ne 0 ]; then exit $exit_code fi - reponame=$(sed -n "s/.*'\([^']*\)'.*/\1/p" .out) + reponame=$(sed -n "s/.*'\([^']*\)'.*/\1/p" .out | head -n1) cd "$reponame" git checkout "$TFO_MAIN_MODULE_REPO_REF" echo "Setting up module for $reponame/$TFO_MAIN_MODULE_REPO_SUBDIR"