diff options
Diffstat (limited to 'Link-Them')
-rwxr-xr-x | Link-Them | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -20,7 +20,12 @@ for file in bash_profile bashrc screenrc vimrc zshrc zshfunc; do fi if ! [ -L "$HOME/.$file" ]; then if [ -e "$HOME/.$file" ]; then - mv "$HOME/.$file" "$HOME/.$file-$date" + if [ "$file" = "bashrc" ] && + md5sum $HOME/.$file | grep -q eed8ae914410b3f768d345824117fd0b ; then # default lenny + rm -v -f "$HOME/.$file" + else + mv "$HOME/.$file" "$HOME/.$file-$date" + fi elif [ -L "$HOME/.$file" ]; then # dangling symlink rm -f "$HOME/.$file" fi |