Skip to content

Commit

Permalink
[PDE-4286] fix(boilerplate): clear build directory before building (#708
Browse files Browse the repository at this point in the history
)

* initial simple fix attempt

* Remove pre-existing build directory when running boilerplate/build.sh

---------

Co-authored-by: Katie Redderson-Lear <kredlear@ip-192-168-1-50.ec2.internal>
Co-authored-by: Greg Aiello <greg.aiello@zapier.com>
  • Loading branch information
3 people authored Oct 3, 2023
1 parent 7908aba commit 38c41ca
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions boilerplate/scripts/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,12 @@ BOILERPLATE_DIR="$REPO_DIR/boilerplate"

BUILD_DIR="$BOILERPLATE_DIR/build"

# Prevent leftover old builds from being included in new build
if [ -d $BUILD_DIR ]; then
echo "Removing existing boilerplate/build directory..."
rm -r "$BUILD_DIR"
fi

mkdir -p $BUILD_DIR

# Copy files
Expand Down

0 comments on commit 38c41ca

Please sign in to comment.