From 5cd4245412f3a2c78e0bfa39169bbcbb969f6d0e Mon Sep 17 00:00:00 2001 From: Kenneth Reitz Date: Tue, 1 Nov 2016 12:45:27 -0400 Subject: [PATCH] Skip copying the code if we're already in the right spot --- bin/compile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bin/compile b/bin/compile index 56335c8..43e0037 100755 --- a/bin/compile +++ b/bin/compile @@ -92,7 +92,10 @@ if [[ ! "$DOCKER_BUILD" ]]; then # Copy Application code in. bpwatch start appdir_stage - deep-cp $BUILD_DIR $APP_DIR + # Skip copying the code if we're already in the right spot. + if [[ $BUILD_DIR != "/app" ]]; then + deep-cp $BUILD_DIR $APP_DIR + fi bpwatch stop appdir_stage fi