File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed
Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -33,18 +33,20 @@ setup_user() {
3333# Setup a new build directory with COSA init, selecting the version of RHEL or
3434# CentOS Stream that we want as a basis for RHCOS/SCOS.
3535cosa_init () {
36- if test -d builds; then
37- echo " Already in an initialized cosa dir"
38- return
39- fi
40-
4136 if [[ ${# } -ne 1 ]]; then
4237 echo " This should have been called with a single 'variant' argument"
4338 exit 1
4439 fi
4540 local -r variant=" ${1} "
4641 echo " Using variant: ${variant} "
4742
43+ if test -d builds; then
44+ echo " Already in an initialized cosa dir"
45+ # Pull repos from an in-cluster service of the Openshift CI
46+ prepare_repos " ${variant} "
47+ return
48+ fi
49+
4850 # Always create a writable copy of the source repo
4951 tmp_src=" $( mktemp -d) "
5052 cp -a /src " ${tmp_src} /os"
You can’t perform that action at this time.
0 commit comments