Skip to content

Commit

Permalink
Support for .heroku and .profile.d scripts (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
Photonios authored and negativetwelve committed Jan 22, 2018
1 parent 176688a commit 6313a15
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions bin/compile
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,20 @@ for BUILDPACK in $(cat $1/.buildpacks); do
source $dir/export
fi

if [ ! -z $subdir ]; then
# check if the buildpack left any executables behind
if [ -d $1/$subdir/.heroku ]; then
mkdir -p $1/.heroku
cp -R $1/$subdir/.heroku/* $1/.heroku
fi

# check if the buildpack left any .profile.d scripts behind
if [ -d $1/$subdir/.profile.d ]; then
mkdir -p $1/.profile.d
cp -R $1/$subdir/.profile.d/* $1/.profile.d
fi
fi

if [ -x $dir/bin/release ]; then
$dir/bin/release $1/$subdir > $1/$subdir/last_pack_release.out
fi
Expand Down

0 comments on commit 6313a15

Please sign in to comment.