From 431ecee50984435f08139ef59a63721be789571e Mon Sep 17 00:00:00 2001 From: manojlds <manojlds@gmail.com> Date: Wed, 10 Apr 2013 15:06:51 +0530 Subject: [PATCH] Using the bin path at root of pwd The compile script is run with the root of the git repo of the project being pushed as the working directory. $BIN_DIR is pointing to the bin directory of the buildpack which is not where you would want to put the pre and post compile hooks. Changing back to the old convention of looking for the hooks from the bin directory at the root of the project. --- bin/steps/hooks/post_compile | 6 +++--- bin/steps/hooks/pre_compile | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/bin/steps/hooks/post_compile b/bin/steps/hooks/post_compile index 636d6390..a5f4c5a2 100644 --- a/bin/steps/hooks/post_compile +++ b/bin/steps/hooks/post_compile @@ -1,7 +1,7 @@ #!/usr/bin/env bash -if [ -f $BIN_DIR/post_compile ]; then +if [ -f bin/post_compile ]; then echo "-----> Running post-compile hook" - chmod +x $BIN_DIR/post_compile - $BIN_DIR/post_compile + chmod +x bin/post_compile + bin/post_compile fi \ No newline at end of file diff --git a/bin/steps/hooks/pre_compile b/bin/steps/hooks/pre_compile index a6d65a6a..e5eeddf5 100644 --- a/bin/steps/hooks/pre_compile +++ b/bin/steps/hooks/pre_compile @@ -1,7 +1,7 @@ #!/usr/bin/env bash -if [ -f $BIN_DIR/pre_compile ]; then +if [ -f bin/pre_compile ]; then echo "-----> Running pre-compile hook" - chmod +x $BIN_DIR/pre_compile - $BIN_DIR/pre_compile + chmod +x bin/pre_compile + bin/pre_compile fi \ No newline at end of file -- GitLab