From d254a91bcf474f82ad6a0935eaef22b82fbbab1a Mon Sep 17 00:00:00 2001 From: mreid-tt <943378+mreid-tt@users.noreply.github.com> Date: Mon, 16 Oct 2023 21:17:48 -0400 Subject: [PATCH] Framework: Fix wizard template logic --- mk/spksrc.spk.mk | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mk/spksrc.spk.mk b/mk/spksrc.spk.mk index 2d3bfbb64de..8bd12db30df 100644 --- a/mk/spksrc.spk.mk +++ b/mk/spksrc.spk.mk @@ -438,6 +438,9 @@ ifneq ($(strip $(WIZARDS_DIR)),) $(eval SPK_CONTENT += WIZARD_UIFILES) @mkdir -p $(DSM_WIZARDS_DIR) @find $${SPKSRC_WIZARDS_DIR} -maxdepth 1 -type f -and \( $(WIZARD_FILE_NAMES) \) -print -exec cp -f {} $(DSM_WIZARDS_DIR) \; + @if [ -f "$(DSM_WIZARDS_DIR)/uninstall_uifile.sh" ] && [ -f "$(DSM_WIZARDS_DIR)/uninstall_uifile" ]; then \ + rm "$(DSM_WIZARDS_DIR)/uninstall_uifile"; \ + fi @if [ -d "$(WIZARDS_DIR)$(TCVERSION)" ]; then \ $(MSG) "Create DSM Version specific Wizards: $(WIZARDS_DIR)$(TCVERSION)"; \ find $${SPKSRC_WIZARDS_DIR}$(TCVERSION) -maxdepth 1 -type f -and \( $(WIZARD_FILE_NAMES) \) -print -exec cp -f {} $(DSM_WIZARDS_DIR) \; ;\