From bbea540de659a24635dbcdcadfc2606af02a5209 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Storsj=C3=B6?= Date: Fri, 3 Aug 2018 11:04:40 +0300 Subject: [PATCH] Remove dangling symlinks when stripping the llvm installation --- strip-llvm.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/strip-llvm.sh b/strip-llvm.sh index c82f528..0560237 100755 --- a/strip-llvm.sh +++ b/strip-llvm.sh @@ -30,6 +30,9 @@ for i in bugpoint c-index-test clang-* diagtool dsymutil git-clang-format hmapto *) if [ -f $i ]; then rm $i + elif [ -L $i ] && [ ! -e $(readlink $i) ]; then + # Remove dangling symlinks + rm $i fi ;; esac