Skip to content

Commit 0ae0ba6

Browse files
committed
reponame fix1
1 parent ad6f984 commit 0ae0ba6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/controllers/scripts/setup.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ if [[ ! -s "$TFO_MAIN_MODULE_ADDONS/inline-module.tf" ]]; then
6969
if [ $exit_code -ne 0 ]; then
7070
exit $exit_code
7171
fi
72-
reponame=$(sed -n "s/.*'\([^']*\)'.*/\1/p" .out)
72+
reponame=$(sed -n "s/.*'\([^']*\)'.*/\1/p" .out | head -n1)
7373
cd "$reponame"
7474
git checkout "$TFO_MAIN_MODULE_REPO_REF"
7575
echo "Setting up module for $reponame/$TFO_MAIN_MODULE_REPO_SUBDIR"

0 commit comments

Comments
 (0)