Skip to content

Commit

Permalink
Remove pre-existing build directory when running boilerplate/build.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
gregilo committed Sep 29, 2023
1 parent f54edfe commit a9379f3
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions boilerplate/scripts/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,13 @@ BOILERPLATE_DIR="$REPO_DIR/boilerplate"

BUILD_DIR="$BOILERPLATE_DIR/build"

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

mkdir $BUILD_DIR
mkdir -p $BUILD_DIR

# Copy files
cp "$CORE_DIR/include/zapierwrapper.js" "$BOILERPLATE_DIR/"
Expand Down

0 comments on commit a9379f3

Please sign in to comment.