summaryrefslogtreecommitdiffstats
path: root/install.sh
diff options
context:
space:
mode:
authorTharre <tharre3@gmail.com>2017-05-26 15:10:04 +0200
committerTharre <tharre3@gmail.com>2017-05-26 15:10:04 +0200
commit00731273366781b325c92798dd752755dcb3ad43 (patch)
treec79e173aa316cd8f552b3c31bc28bca8cb940b68 /install.sh
parent90b488e516a27c18d599063aaecb6db481590eba (diff)
downloaddotfiles-00731273366781b325c92798dd752755dcb3ad43.tar.gz
dotfiles-00731273366781b325c92798dd752755dcb3ad43.tar.xz
dotfiles-00731273366781b325c92798dd752755dcb3ad43.zip
Remove broken symlinks on install
Diffstat (limited to 'install.sh')
-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"