Skip to content

Commit

Permalink
Framework: fix for wizard file permissions (#5608)
Browse files Browse the repository at this point in the history
Co-authored-by: Antoine Malliarakis <antoine.malliarakis@gmail.com>
  • Loading branch information
mreid-tt and smaarn authored Feb 17, 2023
1 parent 392f7a6 commit e1ee048
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions mk/spksrc.spk.mk
Original file line number Diff line number Diff line change
Expand Up @@ -390,10 +390,10 @@ ifneq ($(strip $(WIZARDS_DIR)),)
$(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) \; ;\
fi
endif
ifneq ($(wildcard $(DSM_WIZARDS_DIR)/*),)
@find $(DSM_WIZARDS_DIR) -maxdepth 1 -type f -not -name "*.sh" -print -exec chmod 0644 {} \;
@find $(DSM_WIZARDS_DIR) -maxdepth 1 -type f -name "*.sh" -print -exec chmod 0755 {} \;
@if [ -d "$(DSM_WIZARDS_DIR)" ]; then \
find $(DSM_WIZARDS_DIR) -maxdepth 1 -type f -not -name "*.sh" -print -exec chmod 0644 {} \; ;\
find $(DSM_WIZARDS_DIR) -maxdepth 1 -type f -name "*.sh" -print -exec chmod 0755 {} \; ;\
fi
endif

.PHONY: conf
Expand Down

0 comments on commit e1ee048

Please sign in to comment.