Permalink
Browse files

Merge pull request #1192 from rcakirerk/a39c9ffe5b7236b6e4dc78efa80b4…

…78cc411af7f

Fix finding git issue.
  • Loading branch information...
robbyrussell committed Jun 24, 2012
2 parents 3ac3141 + a39c9ff commit 1425ffe85cd83c422f7a2e68992c4556948e1567
Showing with 2 additions and 5 deletions.
  1. +2 −5 tools/install.sh
View
@@ -5,13 +5,10 @@ then
fi
echo "\033[0;34mCloning Oh My Zsh...\033[0m"
-which git > /dev/null
-if [[ $? -eq 0 ]]; then
- /usr/bin/env git clone https://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh
-else
+hash git >/dev/null && /usr/bin/env git clone https://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh || {
echo "git not installed"
exit
-fi
+}
echo "\033[0;34mLooking for an existing zsh config...\033[0m"
if [ -f ~/.zshrc ] || [ -h ~/.zshrc ]

0 comments on commit 1425ffe

Please sign in to comment.