From e35053fe8963db680e5ac26fcfe659cd4e6e2725 Mon Sep 17 00:00:00 2001 From: marcusquinn <6428977+marcusquinn@users.noreply.github.com> Date: Sun, 13 Apr 2025 04:16:32 +0100 Subject: [PATCH] Update deploy script to remove old plugin directory and fix branch fix plugin path --- deploy-local.sh | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/deploy-local.sh b/deploy-local.sh index 85fbd51..f3b3fb8 100755 --- a/deploy-local.sh +++ b/deploy-local.sh @@ -16,9 +16,15 @@ echo "Cleaning up target directory..." rm -rf "$TARGET_DIR/$MAIN_PLUGIN_NAME"/* # Remove the separate branch fix plugin if it exists -if [ -d "$TARGET_DIR/gu-branch-fix" ]; then +if [ -f "$TARGET_DIR/gu-branch-fix.php" ]; then echo "Removing separate branch fix plugin..." - rm -rf "$TARGET_DIR/gu-branch-fix" + rm -f "$TARGET_DIR/gu-branch-fix.php" +fi + +# Remove the old plugin directory if it exists +if [ -d "$TARGET_DIR/wp-fix-plugin-does-not-exist-notices" ]; then + echo "Removing old plugin directory..." + rm -rf "$TARGET_DIR/wp-fix-plugin-does-not-exist-notices" fi # Copy main plugin files