diff --git a/scripts/install.sh b/scripts/install.sh index 007c7ae..0a40603 100644 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -68,16 +68,19 @@ main() { pwd=`pwd` cd $ZSH - $(env git submodule init) || { + env git submodule init || { printf "Error: git submodule of My.Zsh repo failed\n" exit 1 } + + env git submodule update + cd $pwd printf "${BLUE}Looking for an existing zsh config...${NORMAL}\n" if [ -f ~/.zshrc ] || [ -h ~/.zshrc ]; then printf "${YELLOW}Found ~/.zshrc.${NORMAL} ${GREEN}Backing up to ~/.zshrc.backup ${NORMAL}\n"; - mv ~/.zshrc ~/.zshrc.override; + mv ~/.zshrc ~/.zshrc.backup; fi printf "${BLUE}Using the My.Zsh template file and adding it to ~/.zshrc${NORMAL}\n"