Skip to content

Commit

Permalink
fix(build.sh): switch to build_root before running hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthew Fisher committed Aug 27, 2016
1 parent 25a8e0d commit 37c5109
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions rootfs/builder/build.sh
Expand Up @@ -142,7 +142,9 @@ fi
## Run pre-compile hook

if [[ -f "$build_root/bin/pre-compile" ]]; then
pushd "$build_root" &> /dev/null
"$build_root/bin/pre-compile"
popd &>/dev/null
fi

## Buildpack compile
Expand All @@ -154,7 +156,9 @@ fi
## Run post-compile hook

if [[ -f "$build_root/bin/post-compile" ]]; then
pushd "$build_root" &> /dev/null
"$build_root/bin/post-compile"
popd &>/dev/null
fi

## Display process types
Expand Down

0 comments on commit 37c5109

Please sign in to comment.