Update deploy script to use correct plugin directory name

This commit is contained in:
2025-04-13 04:18:33 +01:00
parent e35053fe89
commit 217a835faf

View File

@ -6,7 +6,7 @@
# Set variables # Set variables
SOURCE_DIR="$(pwd)" SOURCE_DIR="$(pwd)"
TARGET_DIR="$HOME/Local/plugin-testing/app/public/wp-content/plugins" 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 # Create target directory if it doesn't exist
mkdir -p "$TARGET_DIR/$MAIN_PLUGIN_NAME" mkdir -p "$TARGET_DIR/$MAIN_PLUGIN_NAME"
@ -22,14 +22,14 @@ if [ -f "$TARGET_DIR/gu-branch-fix.php" ]; then
fi fi
# Remove the old plugin directory if it exists # 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..." 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 fi
# Copy main plugin files # Copy main plugin files
echo "Copying 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/" cp "$SOURCE_DIR/readme.txt" "$TARGET_DIR/$MAIN_PLUGIN_NAME/"
# Copy additional directories and files for the main plugin # Copy additional directories and files for the main plugin