Skip to content

Commit

Permalink
Use 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 6673156 commit 992fe2d
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
9 changes: 9 additions & 0 deletions bin/compile
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,15 @@ if [ $? == 0 ]; then
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
8 changes: 8 additions & 0 deletions bin/release
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/usr/bin/env bash

if [ -e $1/last_pack_release.out ]; then
cat $1/last_pack_release.out
rm $1/last_pack_release.out
else
echo "--- {}"
fi

0 comments on commit 992fe2d

Please sign in to comment.