exit 1
}
-if [ -f ../.bashrc ]; then
- if [ -L ../.bashrc ]; then
- :
- else
- echo "moving old .bashrc to .bashrc-old"
- mv -f ../.bashrc ../.bashrc-old
- fi
-fi
-
copy_ssh_old=0
-if [ -d ../.ssh ]; then
- if [ -L ../.ssh ]; then
- :
- else
- echo "moving old .ssh to .ssh-old"
- mv -f ../.ssh ../.ssh-old
- copy_ssh_old=1
+for file in .bashrc .ssh .profile; do
+ if [ -f ../$file ]; then
+ if [ -L ../$file ]; then
+ :
+ else
+ echo "moving old $file to $file-old"
+ mv -f ../$file ../$file-old
+ if [ $file == .ssh ]; then
+ copy_ssh_old=1
+ fi
+ fi
fi
-fi
+done
BASEDIR=`pwd`
for file in ${BASEDIR}/.[^.]*; do