diff options
author | Peter Palfrader <peter@palfrader.org> | 2009-06-27 11:00:29 +0000 |
---|---|---|
committer | weasel <weasel@bc3d92e2-beff-0310-a7cd-cc87d7ac0ede> | 2009-06-27 11:00:29 +0000 |
commit | 977aa925c434a2332454cfed8292ad43e3f8bc5e (patch) | |
tree | c3af5625b084902a4162643ad0b72662a5396d19 /Link-Them | |
parent | 586ac36478fdd8f0d23c654cd9011318a22a8722 (diff) |
Remove default lenny bashrc - no need for backups
git-svn-id: svn+ssh://asteria.noreply.org/svn/weaselutils/trunk@400 bc3d92e2-beff-0310-a7cd-cc87d7ac0ede
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 |