Skip copying the code if we're already in the right spot

This commit is contained in:
2016-11-01 12:45:27 -04:00
parent 40daa84ccc
commit 5cd4245412
+4 -1
View File
@@ -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