File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -105,7 +105,7 @@ function specs::run() {
105105 fi
106106
107107 local buildpack_file
108- buildpack_file=" $( buildpack::package " 1.2.3" " ${cached} " ) "
108+ buildpack_file=" $( buildpack::package " 1.2.3" " ${cached} " " ${stack} " ) "
109109
110110 CF_STACK=" ${stack} " \
111111 BUILDPACK_FILE=" ${BUILDPACK_FILE:- " ${buildpack_file} " } " \
@@ -127,13 +127,14 @@ function buildpack::package() {
127127 local version cached
128128 version=" ${1} "
129129 cached=" ${2} "
130+ stack=" ${3} "
130131
131132 local name cached_flag
132- name=" buildpack-v${version} -uncached.zip"
133+ name=" buildpack-${stack} - v${version} -uncached.zip"
133134 cached_flag=" "
134135 if [[ " ${cached} " == " true" ]]; then
135136 cached_flag=" --cached"
136- name=" buildpack-v${version} -cached.zip"
137+ name=" buildpack-${stack} - v${version} -cached.zip"
137138 fi
138139
139140 local output
@@ -142,6 +143,7 @@ function buildpack::package() {
142143 bash " ${ROOTDIR} /scripts/package.sh" \
143144 --version " ${version} " \
144145 --output " ${output} " \
146+ --stack " ${stack} " \
145147 " ${cached_flag} " > /dev/null
146148
147149 printf " %s" " ${output} "
You can’t perform that action at this time.
0 commit comments