Skip to content

Commit

Permalink
Set xtrace if $BUILDPACK_XTRACE set (#463)
Browse files Browse the repository at this point in the history
For debugging or for folks who are curious about how the buildpack works.

Similar implementation here: heroku/heroku-buildpack-python#226
  • Loading branch information
josegonzalez authored Mar 23, 2022
1 parent 1e5fce9 commit 9bf4bf2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bin/compile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@

set -eo pipefail

[ "$BUILDPACK_XTRACE" ] && set -o xtrace

mkdir -p "$1" "$2"
build=$(cd "$1/" && pwd)
cache=$(cd "$2/" && pwd)
Expand Down

0 comments on commit 9bf4bf2

Please sign in to comment.