From 2b2a86a4655b35955201a24cc0eca285d57c1168 Mon Sep 17 00:00:00 2001 From: Michiel Scholten Date: Wed, 16 Jul 2014 16:42:18 +0200 Subject: [PATCH] Check for the ~/.dot_* files. This way install.sh can be used for updating --- install.sh | 38 ++++++++++++++++++++++---------------- 1 file changed, 22 insertions(+), 16 deletions(-) diff --git a/install.sh b/install.sh index 34681c7..ce9e510 100644 --- a/install.sh +++ b/install.sh @@ -45,20 +45,26 @@ fi echo "INFO: Vundle Install" vim +BundleInstall +qall -echo -echo "Do you wish to install mercurial stuff?" -select yn in "Yes" "No"; do - case $yn in - Yes ) install_hg; break;; - No ) touch ~/.dot_no_hg; break;; - esac -done +if [ -e ~/.dot_has_hg ]; then + install_hg +elif [ ! -e ~/.dot_no_hg ]; then + echo + echo "Do you wish to install mercurial stuff?" + select yn in "Yes" "No"; do + case $yn in + Yes ) install_hg; break;; + No ) touch ~/.dot_no_hg; break;; + esac + done +fi -echo -echo "Is this machine a server?" -select yn in "Yes" "No"; do - case $yn in - Yes ) touch ~/.dot_is_server; break;; - No ) touch ~/.dot_no_server; break;; - esac -done +if [ ! -e ~/.dot_is_server ] && [ ! -e ~/.dot_no_server ]; then + echo + echo "Is this machine a server?" + select yn in "Yes" "No"; do + case $yn in + Yes ) touch ~/.dot_is_server; break;; + No ) touch ~/.dot_no_server; break;; + esac + done +fi