File tree Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ COPY index/ /index
2222COPY tests/registry /registry
2323
2424# Download offline starter projects
25- RUN bash /build-tools/dl_starter_projects.sh
25+ RUN bash /build-tools/dl_starter_projects.sh go-starter
2626
2727# Run the registry build tools
2828RUN /build-tools/build.sh /registry /build
Original file line number Diff line number Diff line change 11#! /bin/bash
22
3+ if [ -z " $@ " ]
4+ then
5+ echo " No starter projects specified."
6+ exit 0
7+ fi
8+
39# Path of stacks directory in the registry
410STACKS_DIR=/registry/stacks
511# List of starter projects to use offline
6- OFFLINE_STARTER_PROJECTS=( " go-starter " )
12+ offline_starter_projects=( " $@ " )
713
814# Downloads a starter project from a remote git repository and packages it as a zip archive
915# to be used as an offline resource.
@@ -35,7 +41,7 @@ download_zip_starter_project() {
3541read -r -a stacks <<< " $(ls ${STACKS_DIR} | tr '\n' ' ')"
3642
3743echo " Downloading offline starter projects.."
38- for starter_project in ${OFFLINE_STARTER_PROJECTS [@]}
44+ for starter_project in ${offline_starter_projects [@]}
3945do
4046 for stack in ${stacks[@]}
4147 do
You can’t perform that action at this time.
0 commit comments