Update deploy script to remove old plugin directory and fix branch fix plugin path

This commit is contained in:
2025-04-13 04:16:32 +01:00
parent aaef27a0b5
commit e35053fe89

View File

@ -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