[go: up one dir, main page]

Menu

[r81]: / bin / ct-uninstall  Maximize  Restore  History

Download this file

23 lines (20 with data), 571 Bytes

#!/bin/sh
## ct-deinstall for ct-deinstall in /home/ctaf/.ctafconf/bin
##
## Made by GESTES Cedric
## Login   <ctaf@epita.fr>
##
## Started on  Thu Sep 29 05:25:53 2005 GESTES Cedric
## Last update Tue Oct  4 16:08:46 2005 
##

list=~/.zshrc ~/.zshenv ~/.emacs ~/.bashrc ~/.fluxbox ~/.xsession ~/.xinitrc ~/.torsmorc ~/.xbindkeysrc ~/.tcshrc ~/.toprc

for i in $list; do
  if [ -f $i ] && [ -f $i-previous ]; then
    echo "would you like to restore this file: $i [y/n]?"
      read yesno
      if [ x$yesno = xy ] ; then
	rm -rf $i
	mv $i-previous $i
      fi
  fi
done