From 2fdd9009caad172d34e433c6f57eb9bc692ebd94 Mon Sep 17 00:00:00 2001 From: Adam Demasi Date: Sat, 14 Apr 2018 23:09:07 +0930 Subject: [PATCH] [preinst] breaking this a bit more --- preinst | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/preinst b/preinst index 6a2d0cb..fd4fb21 100755 --- a/preinst +++ b/preinst @@ -1,6 +1,11 @@ #!/bin/bash set -e +# fix my broken logic from 2.0b2… +if [[ -h /Library/TypeStatus/TypeStatus ]]; then + rm /Library/TypeStatus/TypeStatus +fi + # delete a broken symlink if necessary if [[ -h /Library/TypeStatus && "$(readlink -q /Library/TypeStatus)" == "" ]]; then rm /Library/TypeStatus @@ -29,7 +34,7 @@ if [[ ! -d /usr/lib/TypeStatus/Providers ]]; then fi # if /Library/TypeStatus isn’t a symlink, make it be one now -if [[ ! -h /Library/TypeStatus ]]; then +if [[ ! -h /Library/TypeStatus && ! -d /Library/TypeStatus ]]; then ln -s /usr/lib/TypeStatus /Library/TypeStatus fi