From f54edfeb13b9d41b64ad28799b9e2b284b042902 Mon Sep 17 00:00:00 2001 From: Katie Redderson-Lear Date: Wed, 27 Sep 2023 16:37:10 -0700 Subject: [PATCH] initial simple fix attempt --- boilerplate/scripts/build.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/boilerplate/scripts/build.sh b/boilerplate/scripts/build.sh index 6f2c7023b..b9254967e 100755 --- a/boilerplate/scripts/build.sh +++ b/boilerplate/scripts/build.sh @@ -67,7 +67,11 @@ BOILERPLATE_DIR="$REPO_DIR/boilerplate" BUILD_DIR="$BOILERPLATE_DIR/build" -mkdir -p $BUILD_DIR +# Prevent leftover old builds from being included +if [ -d $BUILD_DIR ]; then + --rm --rf $BUILD_DIR + +mkdir $BUILD_DIR # Copy files cp "$CORE_DIR/include/zapierwrapper.js" "$BOILERPLATE_DIR/"