diff --git a/scripts/install.sh b/scripts/install.sh index 6432a9e..c091a47 100644 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -65,12 +65,14 @@ main() { exit 1 } - pushd $ZSH + pwd=`pwd` + cd $ZSH + $(env git submodule init && git submodule update) || { printf "Error: git submodule of My.Zsh repo failed\n" exit 1 } - popd + cd $pwd printf "${BLUE}Looking for an existing zsh config...${NORMAL}\n" if [ -f ~/.zshrc ] || [ -h ~/.zshrc ]; then