Skip to content
This repository was archived by the owner on Feb 23, 2024. It is now read-only.

Commit d85e979

Browse files
committed
make sure existing zip file is removed before being recreated
1 parent fa73530 commit d85e979

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

bin/build-plugin-zip.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@ SOURCE_PATH=$(pwd)
4141
cd "$(dirname "$0")"
4242
cd ..
4343

44+
## Remove any existing zip file
45+
rm woocommerce-gutenberg-products-block.zip
46+
4447
# Enable nicer messaging for build status.
4548
BLUE_BOLD='\033[1;34m';
4649
GREEN_BOLD='\033[1;32m';
@@ -141,7 +144,6 @@ else
141144
fi
142145

143146
# Generate the plugin zip file.
144-
echo $SOURCE_PATH;
145147
status "Creating archive... 🎁"
146148
mkdir zip-file
147149
mkdir zip-file/build

0 commit comments

Comments
 (0)