Skip to content
Browse files

Allow custom BUILD_COMMAND.

  • Loading branch information...
1 parent c723577 commit c3ea9be5d64788a6ef7d6f222a41c9bb0e397930 @technomancy technomancy committed
Showing with 7 additions and 5 deletions.
  1. +7 −5 bin/compile
View
12 bin/compile
@@ -73,11 +73,13 @@ fi
echo "-----> Building with Leiningen"
# Calculate build command
-if [ -x $BUILD_DIR/bin/build ]; then
- echo " Found bin/build; running it instead of default lein invocation."
- BUILD_COMMAND=bin/build
-else
- BUILD_COMMAND="lein $LEIN_BUILD_TASK"
+if [ "$BUILD_COMMAND" != "" ]; then
+ if [ -x $BUILD_DIR/bin/build ]; then
+ echo " Found bin/build; running it instead of default lein invocation."
+ BUILD_COMMAND=bin/build
+ else
+ BUILD_COMMAND="lein $LEIN_BUILD_TASK"
+ fi
fi
echo " Running: $BUILD_COMMAND"

0 comments on commit c3ea9be

Please sign in to comment.
Something went wrong with that request. Please try again.