Browse Source

Prompt for git updates

Andrew Swistak 11 years ago
parent
commit
405d81f369
1 changed files with 4 additions and 2 deletions
  1. 4 2
      scripts/install_dotfiles.sh

+ 4 - 2
scripts/install_dotfiles.sh

@@ -73,8 +73,10 @@ done
 ln -fsn "$DIR"/vim/pathogen/autoload "$DIR"/vim/
 ln -fsn "$DIR"/vim/pathogen/autoload "$DIR"/vim/
 mkdir -p "$DIR"/vim/tmp/{backup,swap,undo}
 mkdir -p "$DIR"/vim/tmp/{backup,swap,undo}
 
 
-git submodule update --init --recursive
-git submodule foreach --recursive git pull origin master
+if prompt "Update git submodules?" N ; then
+  git submodule update --init --recursive
+  git submodule foreach --recursive git pull origin master
+fi
 
 
 #Very specific to Arch
 #Very specific to Arch
 if prompt "Install boost and airline glyphs?" N; then
 if prompt "Install boost and airline glyphs?" N; then