Skip to content

Commit

Permalink
use command -v instead because this script runs in sh.
Browse files Browse the repository at this point in the history
  • Loading branch information
staticsafe committed Jun 16, 2012
1 parent 02306de commit 768b672
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/install.sh
Expand Up @@ -5,7 +5,7 @@ then
fi

echo "\033[0;34mCloning Oh My Zsh...\033[0m"
hash git &>/dev/null
command -v git &>/dev/null
if [[ $? -eq 0 ]]; then
/usr/bin/env git clone https://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh
else
Expand Down

0 comments on commit 768b672

Please sign in to comment.