Skip to content
This repository was archived by the owner on Jun 11, 2022. It is now read-only.

Commit 1dc3e3e

Browse files
committed
Avoid stomping on the last of multi-buildpack's release script
1 parent 992fe2d commit 1dc3e3e

File tree

2 files changed

+3
-10
lines changed

2 files changed

+3
-10
lines changed

bin/compile

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -56,20 +56,11 @@ framework=$($dir/bin/detect $1)
5656

5757
if [ $? == 0 ]; then
5858
echo "=====> Detected Framework: $framework"
59-
$dir/bin/compile $1 $2 $3
59+
$dir/bin/compile $BUILD_DIR $CACHE_DIR $ENV_DIR
6060

6161
if [ $? != 0 ]; then
6262
exit 1
6363
fi
64-
65-
# check if the buildpack left behind an environment for subsequent ones
66-
if [ -e $dir/export ]; then
67-
source $dir/export
68-
fi
69-
70-
if [ -x $dir/bin/release ]; then
71-
$dir/bin/release $1 > $1/last_pack_release.out
72-
fi
7364
else
7465
echo "create-react-app `.buildpacks` not defined. Exiting."
7566
exit 1

bin/release

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#!/usr/bin/env bash
22

3+
# Use architecture of multi-buildpack to compose behavior.
4+
# https://github.com/heroku/heroku-buildpack-multi
35
if [ -e $1/last_pack_release.out ]; then
46
cat $1/last_pack_release.out
57
rm $1/last_pack_release.out

0 commit comments

Comments
 (0)