From 217a835fafd67042a33e016e8e425025641d59f0 Mon Sep 17 00:00:00 2001 From: marcusquinn <6428977+marcusquinn@users.noreply.github.com> Date: Sun, 13 Apr 2025 04:18:33 +0100 Subject: [PATCH] Update deploy script to use correct plugin directory name --- deploy-local.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/deploy-local.sh b/deploy-local.sh index f3b3fb8..fed847a 100755 --- a/deploy-local.sh +++ b/deploy-local.sh @@ -6,7 +6,7 @@ # Set variables SOURCE_DIR="$(pwd)" TARGET_DIR="$HOME/Local/plugin-testing/app/public/wp-content/plugins" -MAIN_PLUGIN_NAME="fix-plugin-file-does-not-exist-notices" +MAIN_PLUGIN_NAME="wp-fix-plugin-does-not-exist-notices" # Create target directory if it doesn't exist mkdir -p "$TARGET_DIR/$MAIN_PLUGIN_NAME" @@ -22,14 +22,14 @@ if [ -f "$TARGET_DIR/gu-branch-fix.php" ]; then fi # Remove the old plugin directory if it exists -if [ -d "$TARGET_DIR/wp-fix-plugin-does-not-exist-notices" ]; then +if [ -d "$TARGET_DIR/fix-plugin-file-does-not-exist-notices" ]; then echo "Removing old plugin directory..." - rm -rf "$TARGET_DIR/wp-fix-plugin-does-not-exist-notices" + rm -rf "$TARGET_DIR/fix-plugin-file-does-not-exist-notices" fi # Copy main plugin files echo "Copying plugin files..." -cp "$SOURCE_DIR/wp-fix-plugin-does-not-exist-notices.php" "$TARGET_DIR/$MAIN_PLUGIN_NAME/fix-plugin-file-does-not-exist-notices.php" +cp "$SOURCE_DIR/wp-fix-plugin-does-not-exist-notices.php" "$TARGET_DIR/$MAIN_PLUGIN_NAME/wp-fix-plugin-does-not-exist-notices.php" cp "$SOURCE_DIR/readme.txt" "$TARGET_DIR/$MAIN_PLUGIN_NAME/" # Copy additional directories and files for the main plugin