From bbb3a1d10ef478dc1d7c511e7aa780b842f3983b Mon Sep 17 00:00:00 2001 From: Sameer Rahmani Date: Thu, 24 May 2018 16:29:49 +0100 Subject: [PATCH] Minor bug has been fixed on install script --- scripts/install.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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