From 3eb9b42829838bb6958641b96fac9fa44a857c78 Mon Sep 17 00:00:00 2001 From: Eli Bosley Date: Mon, 15 Sep 2025 12:26:35 -0400 Subject: [PATCH] fix: ensure new banner file creation by removing old banner in generate-pr-plugin.sh --- .github/scripts/generate-pr-plugin.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/scripts/generate-pr-plugin.sh b/.github/scripts/generate-pr-plugin.sh index 815eebd4f..67d0c5846 100755 --- a/.github/scripts/generate-pr-plugin.sh +++ b/.github/scripts/generate-pr-plugin.sh @@ -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..."