use command -v instead because this script runs in sh.

This commit is contained in:
staticsafe 2012-06-16 15:40:19 -04:00
commit 768b6722bf

View file

@ -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