summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xinstall.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/install.sh b/install.sh
index 9922a43..00e7fd0 100755
--- a/install.sh
+++ b/install.sh
@@ -9,6 +9,9 @@ if [ "$#" -ne 1 ]; then
find . -maxdepth 1 ! -path . ! -name .git ! -name .gitmodules \
! -name .gitignore ! -name .updated -name '.*' -exec "$0" {} \;
+
+ # remove broken symlinks
+ find -L "$HOME" -maxdepth 1 -type l -delete
else
canonical=$(echo $1 | sed "s|^\./||")
target="$HOME/$canonical"