Skip to content
This repository has been archived by the owner on Jan 24, 2022. It is now read-only.

Commit

Permalink
[preinst,makefile] ok we can blame this one entirely on me
Browse files Browse the repository at this point in the history
  • Loading branch information
kirb committed Mar 19, 2018
1 parent 4900f95 commit cbff839
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ ifneq ($(PACKAGE_BUILDNAME)$(IMAGENT),debug)
endif

$(ECHO_NOTHING)cp Resources/*.png $(THEOS_STAGING_DIR)/System/Library/Frameworks/UIKit.framework$(ECHO_END)
$(ECHO_NOTHING)ln -s /usr/lib/TypeStatus/TypeStatusProvider.framework $(THEOS_STAGING_DIR)/Library/Frameworks/TypeStatusProvider.framework$(ECHO_END)
$(ECHO_NOTHING)ln -s /usr/lib/TypeStatusProvider.framework $(THEOS_STAGING_DIR)/Library/Frameworks/TypeStatusProvider.framework$(ECHO_END)

docs: stage
$(ECHO_BEGIN)$(PRINT_FORMAT_MAKING) "Generating docs"; jazzy --module-version $(THEOS_PACKAGE_BASE_VERSION)$(ECHO_END)
Expand Down
4 changes: 2 additions & 2 deletions preinst
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
set -e

# delete a broken symlink if necessary
if [[ -h /Library/TypeStatus && "$(readlink -eq /Library/TypeStatus)" == "" ]]; then
if [[ -h /Library/TypeStatus && "$(readlink -q /Library/TypeStatus)" == "" ]]; then
rm /Library/TypeStatus
fi

Expand Down Expand Up @@ -34,7 +34,7 @@ if [[ ! -h /Library/TypeStatus ]]; then
fi

# if the framework leads to the wrong place, fix it (why does this happen?)
fw_link="$(readlink -eq /Library/Frameworks/TypeStatusProvider.framework)"
fw_link="$(readlink -q /Library/Frameworks/TypeStatusProvider.framework || true)"

if [[ "$fw_link" == "" || "$fw_link" == "/usr/lib/TypeStatus/TypeStatusProvider.framework" ]]; then
rm -rf /Library/Frameworks/TypeStatusProvider.framework
Expand Down

0 comments on commit cbff839

Please sign in to comment.