From e237c09d9e8202380660fcf847943695b3564ff8 Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Thu, 11 Sep 2014 21:30:17 +0200 Subject: Fix Link-Them script to remove old symlinks --- Link-Them | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Link-Them') diff --git a/Link-Them b/Link-Them index df6873f..b791a4f 100755 --- a/Link-Them +++ b/Link-Them @@ -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 -- cgit v1.2.3