diff --git a/rootfs/builder/build.sh b/rootfs/builder/build.sh index 95ce77c..589c059 100755 --- a/rootfs/builder/build.sh +++ b/rootfs/builder/build.sh @@ -161,7 +161,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 @@ -173,7 +175,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