diff options
author | Peter Palfrader <peter@palfrader.org> | 2014-09-11 21:30:17 +0200 |
---|---|---|
committer | Peter Palfrader <peter@palfrader.org> | 2014-09-11 21:30:17 +0200 |
commit | e237c09d9e8202380660fcf847943695b3564ff8 (patch) | |
tree | 392fca0740bcd293701c1a93e63bcd66719a9b05 /Link-Them | |
parent | 6f38c3b87b69f5b6041c58f500219df3faa6180c (diff) |
Fix Link-Them script to remove old symlinks
Diffstat (limited to 'Link-Them')
-rwxr-xr-x | Link-Them | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -14,7 +14,7 @@ fi for file in bash_profile bashrc gitconfig gitignore screenrc vimrc zshrc zshfunc terminfo tmux.conf; do if [ -L "$HOME/.$file" ]; then - if [ "$(readlink "$HOME/.$file")" = "$dir/$file" ]; then # old style symlink, remove + if [ "$(readlink "$HOME/.$file")" != "$dir/$file" ]; then # old style symlink, remove rm -v -f "$HOME/.$file" fi fi |