Skip to content

Commit 8fffeed

Browse files
mhdawsonthitch97
authored andcommitted
fix: fix up creation of .cnb file
Signed-off-by: Michael Dawson <[email protected]>
1 parent 0c3d40f commit 8fffeed

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

scripts/package.sh

+10
Original file line numberDiff line numberDiff line change
@@ -131,9 +131,19 @@ function buildpackage::create() {
131131

132132
util::print::title "Packaging buildpack...${output}"
133133

134+
cwd=$(pwd)
135+
cd ${BUILD_DIR}
136+
mkdir cnbdir
137+
cd cnbdir
138+
cp ../buildpack.tgz .
139+
tar -xvf buildpack.tgz
140+
rm buildpack.tgz
141+
134142
pack \
135143
extension package "${output}" \
136144
--format file
145+
146+
cd $cwd
137147
}
138148

139149
main "${@:-}"

0 commit comments

Comments
 (0)