diff options
author | Tharre <tharre3@gmail.com> | 2017-05-26 15:10:04 +0200 |
---|---|---|
committer | Tharre <tharre3@gmail.com> | 2017-05-26 15:10:04 +0200 |
commit | 00731273366781b325c92798dd752755dcb3ad43 (patch) | |
tree | c79e173aa316cd8f552b3c31bc28bca8cb940b68 /install.sh | |
parent | 90b488e516a27c18d599063aaecb6db481590eba (diff) | |
download | dotfiles-00731273366781b325c92798dd752755dcb3ad43.tar.gz dotfiles-00731273366781b325c92798dd752755dcb3ad43.tar.xz dotfiles-00731273366781b325c92798dd752755dcb3ad43.zip |
Remove broken symlinks on install
Diffstat (limited to 'install.sh')
-rwxr-xr-x | install.sh | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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" |