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

Commit 992fe2d

Browse files
committed
Use the last of multi-buildpack's release script
1 parent 6673156 commit 992fe2d

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

bin/compile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,15 @@ if [ $? == 0 ]; then
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
6473
else
6574
echo "create-react-app `.buildpacks` not defined. Exiting."
6675
exit 1

bin/release

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/usr/bin/env bash
2+
3+
if [ -e $1/last_pack_release.out ]; then
4+
cat $1/last_pack_release.out
5+
rm $1/last_pack_release.out
6+
else
7+
echo "--- {}"
8+
fi

0 commit comments

Comments
 (0)