Permalink
Browse files

install-test feedbacks

  • Loading branch information...
1 parent 686ad51 commit 51b5016521c223e1c7414260ca1ed67d87183f4a @ronanguilloux committed Mar 29, 2013
Showing with 17 additions and 4 deletions.
  1. +17 −4 install.sh
View
@@ -1,10 +1,23 @@
#!/bin/bash
# move original dotfiles
-mv ~/.bashrc ~/.bashrc-dist
-mv ~/.vim ~/.vim-dist
-mv ~/.gitconfig ~/.gitconfig.local
-
+if [ -f /.bashrc ]
+then
+ mv -f ~/.bashrc ~/.bashrc-dist
+fi
+if [ -f /.bash_aliases ]
+then
+ mv -f ~/.bash_aliases ~/.bash_aliases-dist
+fi
+if [ -d /.vim ]
+ mv -f ~/.vim ~/.vim-dist
+fi
+if [ -f /.gitignore_global ]
+ mv -f ~/.gitignore_global ~/.gitignore_global-dist
+fi
+if [ -f /.gitconfig ]
+ mv -f ~/.gitconfig ~/.gitconfig.local
+fi
# create symlinks
ln -s ~/dotfiles/.bashrc ~/.bashrc
ln -s ~/dotfiles/.vim ~/.vim

0 comments on commit 51b5016

Please sign in to comment.