Permalink
Browse files

Merge pull request #7 from gorenje/fix_profiile_d_copy

Fix two issues i had when using the new buildpack code:
  • Loading branch information...
2 parents 04fa33e + cbd56f8 commit 78c256594a8b3a085de691ea745a74d0df7d8f98 @archaelus committed Jan 17, 2013
Showing with 4 additions and 2 deletions.
  1. +4 −2 bin/compile
View
6 bin/compile
@@ -59,7 +59,9 @@ if [ ${PIPESTATUS[0]} -ne 0 ]; then
exit 1
fi
-mkdir ${PROFILE}
-cp ${bpdir}/opt/otp.sh ${PROFILE}
+if [ -f ${bpdir}/opt/otp.sh ]; then
+ mkdir -p ${PROFILE}
+ cp ${bpdir}/opt/otp.sh ${PROFILE}
+fi
echo "-----> Build succeeded"

0 comments on commit 78c2565

Please sign in to comment.