From adecf4c368ef51efe0bcdfa5ee7c28f9eab5226d Mon Sep 17 00:00:00 2001 From: Simon Pettersson Date: Thu, 5 Oct 2017 19:32:41 +0200 Subject: [PATCH] Updated installer to be agnostic of origin --- tools/install.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/tools/install.sh b/tools/install.sh index 3f4de868..94bd4070 100755 --- a/tools/install.sh +++ b/tools/install.sh @@ -61,11 +61,14 @@ main() { exit 1 fi fi - env git clone --depth=1 https://github.com/robbyrussell/oh-my-zsh.git $ZSH || { + env git clone --depth=1 $(git remote get-url origin) $ZSH || { printf "Error: git clone of oh-my-zsh repo failed\n" exit 1 } - + (cd $ZSH && env git submodule init && env git submodule update) || { + printf "Error: failed to init and update submodules\n" + exit 1 + } printf "${BLUE}Looking for an existing zsh config...${NORMAL}\n" if [ -f ~/.zshrc ] || [ -h ~/.zshrc ]; then