From b0d1e83e88def0877084854a6f04d40990031656 Mon Sep 17 00:00:00 2001 From: nirenjan Date: Thu, 26 Apr 2018 22:24:46 -0700 Subject: [PATCH] Install git config before initializing submodules --- .gitmodules | 2 +- install | 35 +++++++++++++++++------------------ 2 files changed, 18 insertions(+), 19 deletions(-) diff --git a/.gitmodules b/.gitmodules index dd239c3..859b21f 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,3 +1,3 @@ [submodule "scripts"] path = scripts - url = git@github.com:nirenjan/scripts + url = my:scripts diff --git a/install b/install index 022c41d..1983353 100755 --- a/install +++ b/install @@ -129,24 +129,6 @@ DF_PATH=$(pwd) PRINT_PATH=$(echo $DF_PATH | sed "s:^$HOME:~:") echo Installing dotfiles from $PRINT_PATH -####################################################################### -# Initialize submodules -####################################################################### -git submodule init -git submodule update - -####################################################################### -# Install scripts -####################################################################### - -# Create ~/bin folder -mkfolder ~/bin - -# Install scripts -lnfile scripts/stardate ~/bin/ -lnfile scripts/settitle ~/bin/ -lnfile scripts/smartwd ~/bin/ - ####################################################################### # Install git configuration ####################################################################### @@ -170,6 +152,23 @@ then https://raw.githubusercontent.com/git/git/master/contrib/completion/git-prompt.sh fi +####################################################################### +# Initialize submodules +####################################################################### +git submodule update --init --recursive + +####################################################################### +# Install scripts +####################################################################### + +# Create ~/bin folder +mkfolder ~/bin + +# Install scripts +lnfile scripts/stardate ~/bin/ +lnfile scripts/settitle ~/bin/ +lnfile scripts/smartwd ~/bin/ + ####################################################################### # Install vimrc & plugins #######################################################################