Browse files

updated linux bootstrapper

  • Loading branch information...
1 parent 7f1a34a commit 2d60838cfae00a9eb79ad6f61654cc568b2ac8d1 @nvandijk committed Dec 19, 2012
Showing with 4 additions and 8 deletions.
  1. +4 −8 bootstrap_linux.sh
View
12 bootstrap_linux.sh
@@ -1,17 +1,13 @@
#!/bin/bash
echo "symlink .bash_profile"
-rm -f ~/.bash_profile
-ln -s ~/.dotfiles/.bash_profile ~/.bash_profile
+[ ! -f ~/.bash_profile ] && ln -s ~/.dotfiles/.bash_profile ~/.bash_profile
echo "symlink .screenrc"
-rm -f ~/.screenrc
-ln -s ~/.dotfiles/.screenrc ~/.screenrc
+[ ! -f ~/.screenrc ] && ln -s ~/.dotfiles/.screenrc ~/.screenrc
echo "symlink .gitconfig"
-rm -f ~/.gitconfig
-ln -s ~/.dotfiles/.gitconfig ~/.gitconfig
+[ ! -f ~/.gitconfig ] && ln -s ~/.dotfiles/.gitconfig ~/.gitconfig
echo "symlink .gitignore"
-rm -f ~/.gitignore
-ln -s ~/.dotfiles/.gitignore ~/.gitignore
+[ ! -f ~/.gitignore ] && ln -s ~/.dotfiles/.gitignore ~/.gitignore

0 comments on commit 2d60838

Please sign in to comment.