Skip to content

Commit

Permalink
Avoid stomping on the last of multi-buildpack's release script
Browse files Browse the repository at this point in the history
  • Loading branch information
mars committed Jul 29, 2016
1 parent 992fe2d commit 1dc3e3e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
11 changes: 1 addition & 10 deletions bin/compile
Original file line number Diff line number Diff line change
Expand Up @@ -56,20 +56,11 @@ framework=$($dir/bin/detect $1)

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

if [ $? != 0 ]; then
exit 1
fi

# check if the buildpack left behind an environment for subsequent ones
if [ -e $dir/export ]; then
source $dir/export
fi

if [ -x $dir/bin/release ]; then
$dir/bin/release $1 > $1/last_pack_release.out
fi
else
echo "create-react-app `.buildpacks` not defined. Exiting."
exit 1
Expand Down
2 changes: 2 additions & 0 deletions bin/release
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/usr/bin/env bash

# Use architecture of multi-buildpack to compose behavior.
# https://github.com/heroku/heroku-buildpack-multi
if [ -e $1/last_pack_release.out ]; then
cat $1/last_pack_release.out
rm $1/last_pack_release.out
Expand Down

0 comments on commit 1dc3e3e

Please sign in to comment.