fix: ensure new banner file creation by removing old banner in generate-pr-plugin.sh

This commit is contained in:
Eli Bosley
2025-09-15 12:26:35 -04:00
parent 06d50f131b
commit 3eb9b42829

View File

@@ -212,6 +212,10 @@ echo ""
BACKUP_DIR="/boot/config/plugins/webgui-pr-PR_PLACEHOLDER/backups"
MANIFEST="/boot/config/plugins/webgui-pr-PR_PLACEHOLDER/installed_files.txt"
# Remove old banner file to ensure new one gets created
echo "Removing old banner file..."
rm -rf "/usr/local/emhttp/plugins/webgui-pr-PR_PLACEHOLDER"
# First restore original files to ensure clean state
if [ -f "$MANIFEST" ]; then
echo "Step 1: Restoring original files before update..."