From 9472d25bd763019e9dbf292cb698a136a045766c Mon Sep 17 00:00:00 2001 From: Raphael Date: Mon, 25 Mar 2019 14:04:20 +0100 Subject: [PATCH] Update install.sh --- install.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/install.sh b/install.sh index c1f67b9..5a0a02a 100644 --- a/install.sh +++ b/install.sh @@ -2,7 +2,9 @@ BASE=$HOME/.dotfiles -git clone https://github.com/sundowndev/dotfiles $BASE +if [ ! -d "$BASE" ]; then + git clone https://github.com/sundowndev/dotfiles $BASE +fi # links ln -fs ${BASE}/bashrc ${HOME}/.bashrc @@ -12,7 +14,7 @@ ln -fs ${BASE}/zshrc ${HOME}/.zshrc ln -fs ${BASE}/gitignore ${HOME}/.gitignore # mac -if [ [ -z "$(which brew)" ] ]; then +if [ -z "$(which brew)" ]; then echo "detected mac os" #brew install git vim wget fzf tree tmux graphviz transmission bash-completion reattach-to-user-namespace #brew cask install virtualbox virtualbox-extension-pack vagrant flux spectacle iterm2