Skip to content

Commit

Permalink
installer: fix ordering of cygwin msys git check (ohmyzsh#4557)
Browse files Browse the repository at this point in the history
  • Loading branch information
apjanke authored and mcornella committed May 30, 2016
1 parent 9e8f417 commit 483f120
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tools/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,6 @@ main() {
echo "Error: git is not installed"
exit 1
}
env git clone --depth=1 https://github.com/robbyrussell/oh-my-zsh.git $ZSH || {
printf "Error: git clone of oh-my-zsh repo failed\n"
exit 1
}

# The Windows (MSYS) Git is not compatible with normal use on cygwin
if [ "$OSTYPE" = cygwin ]; then
if git --version | grep msysgit > /dev/null; then
Expand All @@ -66,6 +61,11 @@ main() {
exit 1
fi
fi
env git clone --depth=1 https://github.com/robbyrussell/oh-my-zsh.git $ZSH || {
printf "Error: git clone of oh-my-zsh repo failed\n"
exit 1
}


printf "${BLUE}Looking for an existing zsh config...${NORMAL}\n"
if [ -f ~/.zshrc ] || [ -h ~/.zshrc ]; then
Expand Down

0 comments on commit 483f120

Please sign in to comment.